Answers for "class in html with condition in angular"

1

ngclass condition

[class.my-class]="step === 'step1'"
Posted by: Guest on March-15-2021
0

ngclass condition

[ngClass]="{'my-class': step === 'step1', 'my-class2':step === 'step2' }"
Posted by: Guest on March-15-2021

Code answers related to "class in html with condition in angular"

Browse Popular Code Answers by Language