*ngclass - correct way to do it


#1

Am I missing something when using ngclass?

The auto text entry for *ngclass comes up with

[ngClass]=“cssClass: expression”

and not

[ngClass]="{cssClass: expression}"

and I end up adding the brackets myself. What is the best format to use?