conditionally app classes angular code example Example: conditional classes angular <div [className]="isActive ? 'active' : 'inactive'"> </div>