Answer the question
In order to leave comments, you need to log in
What is the correct way to pass your styles to another Angular component?
Hello. The question is.
There is one component.
<div class="box">
<div class="box__title">
{{options?.title}}
</div>
</div>
.box__title {
box-sizing: border-box;
flex-basis: 80%;
margin-left: 25px;
font-weight: 500;
text-decoration: none;
}
<devpav-product-card (checked)="eventCheck($event)" [options]="options"></devpav-product-card>
.box__title {
text-decoration: none;
color: white;
}
Answer the question
In order to leave comments, you need to log in
I didn’t understand the essence a bit, but can I just pass the values as props to the component, get them there via @Input () and use them as inline styles to the elements?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question