Monday, 15 July 2013

javascript - My Ember "if" is not calling the associated function why? -


I have this if the statement in my HTML file is:

  {{# if StatusIsCreated}} & lt; Button class = "BTN BTN-Success" {{Action Toggleprop}} & gt; Edit & lt; / Button & gt; {{/ If}}  

and on my controller:

  statusIsCreated: function () {if (this.get ('model') ( 'Position') === Get 'created') {back true; }},  

When this template is called, it will check that the value of the property 'manufactured' will be checked and if such a button is shown then / P>

I tried to debug it and found that even if this statement is not getting on the controller ... no idea why?

create statusIsCreated one calculated asset:

  statusIsCreative: function () {if (this.get ('model'). ('Position') === 'created') {return true; }} .property ('model.status')  

No comments:

Post a Comment