I can't get the clicked button on ember controller
I used deleteStudent : function(event) {}
but event is undefined. I also tried deleteStudent : function() { console.log(this);}
but 'this' refers to something else;
//HTML
<ul>
<li id=> <button >x</button></li>
</ul>
//Ember controller
actions: {
deleteStudent : function() {
console.log(); // I want to get button here
}
Aucun commentaire:
Enregistrer un commentaire