I have a scenario where I am using parent and child components. When I use the HTML in another component, I also apply my CSS.
For example, in my parent component:
HTML
<div class="chips">
<p class="tags">Tag 1</p>
</div>
CSS
.chips .tags {
color:red;
}
and everything works fine. However, when I do this with another component:
<div class="chips">
<app-child></app-child>
</div>
HTML FROM CHILD COMPONENT
<p class="tags">Tag 1</p>
the text doesn't appear in red as expected.
How can I resolve this issue?