I have a card component in my app. Based off what type of card it is there is a different style that needs to be applied to the root element of the template. When I do this:
<card class="card-type-class"></card>
My html ends up looking like this:
<card class="card-type-class">
<div class="other-constant-classes">
content of my card
</div>
</card>
Instead of like this:
<card>
<div class="other-constant-classes card-type-class">
content of my card
</div>
</card>
Is there anyway to apply classes from the selector to the root element of the component template?
***Sorry if this has been asked, I had a hard time figuring out how to search for that question...
selector: '[tn-labelfor]',usage<label tn-labelforchange stuffthis.renderer.setElementAttribute(this.elementRef.nativeElement,'class','my class');