angular varaible in class code example
Example 1: Angular 8 ngClass If
[ngClass]="(step=='step1')?'my-class1':'my-class2'"
Example 2: angular bind to class or ngClass
<div [ngClass]="{'extra-sparkle': isDelightful}">
[ngClass]="(step=='step1')?'my-class1':'my-class2'"
<div [ngClass]="{'extra-sparkle': isDelightful}">