angular bind to class or ngClass

JavaScript
<!-- notice expression1 used twice -->
<div ng-class="{class1 : expression1, class2 : expression1}">
    Hello World!
</div><div [ngClass]="{'extra-sparkle': isDelightful}">

Source

Also in JavaScript: