Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

conditional classes angular

<div 
  [className]="isActive ? 'active' : 'inactive'">
</div>
Source by ultimatecourses.com #
 
PREVIOUS NEXT
Tagged: #conditional #classes #angular
ADD COMMENT
Topic
Name
2+6 =