Answers for "angular ngclass 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 "angular ngclass multiple conditions"

Browse Popular Code Answers by Language