My component is app-menu
which is a recersive component and its first tag is li
. on the other hand, I have a css that change the font of any li
that is inside <div>
but it is not work in my html
because my li
is wrapped by <app-menu>
. so what can I do? how is possible to use <app-menu>
as well as my css?
my html:
<div>
<app-menu [catList]="catList"></app-menu>
</div>
my app-menu:
<li *ngFor="let cat of subCat()">
<a href="#">{{cat.title}}</a>
.....
</li>
my html after it rendered:
<div>
<app-menu>
<li>
<a href="#">....</a>
.....
</li>
</app-menu>
</div>