what is difference between ngClass and clas binding?
Both accepts same syntax. Only difference I saw was class can do this: [class.sale]="onSale".
Both accepts almost similar syntax:
[ngClass]="stringExp|arrayExp|objExp"
[class]="string | Record<string, boolean | undefined | null> | Array<string>"
I've read some answers on SO. But they are few years ago. I think now the angular team had made both expression similar.
Can someone confirm this?