Dynamic hostname and aot
I want to bind a dynamic class name on a component node with the syntax like this:
@Component({
host: {
[`[class.${classNames()}]`]: 'true',
},
selector: '...',
templateUrl: '...',
})
When I try to build with angular-cli in AOT mode I have this error:
Error in error. Expression not supported
How can I get it to work?
thank
+3
source to share
No one has answered this question yet
Check out similar questions: