Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- directly binding with [style.background-color]="VALUE"
- adding a class [class.my-class]="CONDITIONAL"
- using NgClass [ngClass]="{class: CONDITIONAL}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement