ngClass in host property of component decorator does not work
ngClass is a directive and can’t be used in host bindings. Host bindings only supports
- property
'[propName]':'expr' - attribute
'[attr.attrName]':'expr' - event
(event)="someFunction(event);otherExpr", - style
[style.width]="booleanExpr" - class
[class.className]="booleanExpr"binding. - class
[class]="expr"whereexpris a string with space separated classes