Answers for "ngclass multiple conditions"

CSS
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

add classon ng if

[ngClass]="{'my-class': step === 'step1'}"
Posted by: Guest on June-11-2020
0

multiple ngclass

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

Angular 8 ngClass If

[ngClass]="{1:'my-class1',2:'my-class2',3:'my-class4'}[step]"
Posted by: Guest on February-28-2020

Code answers related to "ngclass multiple conditions"

Browse Popular Code Answers by Language