The ng-class core directive makes dynamic css classes easy and straightforward. In conjunction with ng-repeat, we can create dynamic HTML templates by choosing the right css class based on model attributes.