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

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

ubuntu - Bash Script to Check That Files Are Being Created -