Answers for "ngclass with multiple conditions"

3

ngclass multiple conditions

<a [ngClass]="{'class1':array.status === 'active','class2':array.status === 'idle','class3':array.status === 'inactive',}">
Posted by: Guest on June-23-2020
0

multiple ngclass

<section [ngClass]="{'class1':condition1, 'class2': condition2, 'class3':condition3}" >
Posted by: Guest on February-03-2021

Code answers related to "ngclass with multiple conditions"

Browse Popular Code Answers by Language