Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

use boolean condition ngclass

[ngClass]="{'class1': condition==true, 'class2': condition==false}"
 
PREVIOUS NEXT
Tagged: #boolean #condition #ngclass
ADD COMMENT
Topic
Name
4+9 =