Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

ngclass condition

[ngClass]="(step=='step1')?'my-class1':'my-class2'"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #ngclass #condition
ADD COMMENT
Topic
Name
1+9 =