I created the following simple example component that adds some attributes and listener to the component DOM element using the host property of the @Component decorator. In my c
ngClass is a directive and can't be used in host bindings. Host bindings only supports
'[propName]':'expr''[attr.attrName]':'expr' (event)="someFunction(event);otherExpr", [style.width]="booleanExpr" [class.className]="booleanExpr" binding.[class]="expr" where expr is a string with space separated classes