Check out example codes for "ngclass multiple conditions". It will help you in understanding the concepts better.

Code Example 1

<a [ngClass]="{'class1':array.status === 'active','class2':array.status === 'idle','class3':array.status === 'inactive',}">

Learn ReactJs, React Native from akashmittal.com