Answers for "how to add class in angular 12 on condition"

2

ngclass condition

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

conditional classes angular

<div 
  [className]="isActive ? 'active' : 'inactive'">
</div>
Posted by: Guest on October-18-2020

Code answers related to "how to add class in angular 12 on condition"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language