Is there a way to utilize a class
variable within the @Component
declaration?
Here is the method I am aiming for:
@Component({
selector: "whatever",
host: {
"[class]":"className"
}
})
export class MyComponent {
@Input() className:string="my-class-name";
}
Expected outcome:
<whatever class="my-class-name"></whatever>