apply class at condition angular 10 code example Example: conditional classes angular <div [className]="isActive ? 'active' : 'inactive'"> </div>