I see {{bindAttr class="isEnabled:enabled:disabled"}} on emberjs.com. It will apply enabled class for true, otherwise is disabled with attribute class. But when I try it in jsfiddle.net, it doesn’t work.
I see {{bindAttr class=isEnabled:enabled:disabled}} on emberjs.com. It will apply enabled class for true, otherwise
Share
Because that jsfiddle is using old version emberjs 0.9.5.
Update it to the latest version and the code will work.
http://jsfiddle.net/Ember/61/