How to use if-else condition with [ngClass] in angular 7?

I want to use multiple classes inside Angular [ngClass]. I have two classes, It should work accordingly as per the condition of the flag, that are already passed from the component.ts.

Leave a Comment