Answers for "set class with if in angular"

1

if condition in class angular 8

<i [class]="user.login_status == 1 ? 'fas fa-circle user_active' : 'fas fa-circle user_inactive'" aria-hidden="true"></i>
Posted by: Guest on June-17-2020
0

angular if in class

[ngClass]="step == 'step1' ? 'my_class1' : 'my_class2'"
Posted by: Guest on November-20-2021

Code answers related to "TypeScript"

Browse Popular Code Answers by Language