css property in if condition angular

42

[ngClass]="(step=='step1')?'my-class1':'my-class2'"
<div 
  [className]="isActive ? 'active' : 'inactive'">
</div>

Comments

Submit
0 Comments