So I have an object of ArrayProxy kind
var App = Ember.Application.create();
App.car = Ember.ArrayProxy.create({
content:customers,
edit:function(e){
alert(e);
}
});
on my template I have an anchor tag with the action edit on click set to it by handle bars
<a class="primary action" {{action "edit" on="click"}}>Edit</a>
this isn’t working and I think its because I can’t set events on ArrayProxys… either that or something else?
Any help is appreciated. Thanks!
You can add a target to your
actionhelper:And
clickis the default event, so you could remove theon…