Search code examples
angularjsng-class

How to give multiple condition in ng-class


Have to implement scenario where both && and || should work in one expression like below

ng-class = "{'class_name' : condition1 || condition2 || (condition3 && condition4)}"

Its possible if yes then how?


Solution

  • @Dan Thank you so much for your comment.

    as question This not working directly but using the function works perfect.