I have an action that I want to trigger in my component hbs file if a conditional returns true. For example, If my component.js file looks like this:
export default Ember.Component.extend({
toggleMe: false,
actions: {
changeValue() {
return this.toggleProperty('toggleMe');
}
}
});
I want to call that changeValue action in my hbs file. This is the approach that I have tried in my component.hbs file:
{#if model.property}}
I'm getting an error
"Assertion Failed: Action passed is null or undefined"
Aucun commentaire:
Enregistrer un commentaire