We can apply different type of conditions for ng-class.

Suppose you have 3 css classes(red, green, bold). Now you want to apply that on different conditions.

  1. if-condition 
  2. ternary condition

  3. multiple class

The complete code for the above example:

 

 

 


Leave a Reply

Your email address will not be published. Required fields are marked *