javascript - How to apply ng class with a condtion statement -
javascript - How to apply ng class with a condtion statement -
this question has reply here:
angularjs ngclass conditional 7 answersi'm new angular js , wondering how create ng class apply based on set of conditions. illustration want have set of dates using ng repeat , alter colour of date if date greater current date. question how go this?
ng-class="{'testclass': val == 10}"
this add together class testclass
element when val equals 10
javascript css angularjs angularjs-directive
Comments
Post a Comment