angular bind a class code example Example: angular bind to class or ngClass <div [ngClass]="{'extra-sparkle': isDelightful}">