Answers for "how to add class conditionally in angular"

1

ngclass condition

[class.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 conditionally in angular"

Browse Popular Code Answers by Language