Additionally, you can add with method function:
In HTML
<div [ngClass]="setClasses()">...</div>
In component.ts
// Set Dynamic Classes setClasses() { let classes = { constantClass: true,'conditional-class': this.item.id === 1 } return classes; }