mardi 11 décembre 2018

how to invoke function from helpers ember js

I am trying to call function and get the id of the radio button in ember js.




This is not calling the function in the controller. I tried another method but was getting error.




The error was : Uncaught TypeError: t.apply is not a function

The function is :

radiobuttonAction:function(e){
    if(e.target.checked){
        console.log("This is the id " + e.target.id);
    }
}

Could anyone help me with this and explain why my fuction in controller is not being called.

Thanks in advance. :)




Aucun commentaire:

Enregistrer un commentaire