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 answers

i'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

Popular posts from this blog

java Multi query from Mysql using netbeans -

c# - DotNetZip fails with "stream does not support seek operations" -

c++ - StartServiceCtrlDispatcher don't can access 1063 error -