vendredi 18 septembre 2015

Inverse of property in Ember Template

I have Boolean property enableInput that says whether the input is to be disabled or not. The disabled property of input need to be inverse of enableInput. How to do this without using another property?

{{input type='text' value=model.someValue disabled=invert(model.enableInput)}}




Aucun commentaire:

Enregistrer un commentaire