dimanche 10 juillet 2016

ng-model can i check its own value?

I have been playing with angular and I am currently in a pickle. I want to check to see if the ng-model value is greater then 0 to apply a different css style. Can this be done?

`<span ng-model="users2" ng-hide="!myVar" ng-class="{'test2': users2 > 0}"  style="font-size:28px; color:purple" >`

any help would be appreciated? Thanks!

Aucun commentaire:

Enregistrer un commentaire