Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #condition #class #angular
ADD COMMENT
Topic
Name
9+9 =