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

0

conditional classes angular

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

angular conditional class

<button [class.disable]="1==1">Apply disable class when condition is true</button>
Posted by: Guest on September-22-2021

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

Code answers related to "TypeScript"

Browse Popular Code Answers by Language