In Polymer we have this concept where we add specific properties to certain components, and then style that component with associated attribute. (This way, it differentiates them from the same component that doesnt have that attribute.
For example
Polymer
<osb-retailer-details overlay></osb-retailer-details>
<osb-retailer-details></osb-retailer-details>
And then to style <osb-retailer-details> component with overlay attribute, we do the following:
:host {
box-sizing: border-box;
display: block;
margin: 0 0 15px;
&[overlay] {
margin-bottom: 0;
}
}
Now my question
In angular4, can we do the same thing? Where we pass attribute to component, and style it, just like above?
Thanks
:host[prevCard]{...}? @JBNizet