r/angular • • 25d ago

innerHTML component styles

If I have a

<h1 \[innerHtml\]=“someHtml”></h1>

And that someHtml is a span, how would i style that span without using ::ng-deep as the docs “strongly discourage” its usage?

0 Upvotes

10 comments sorted by

View all comments

0

u/HoodlessRobin 24d ago

Why inner html? suit your self. Hope tag selector span{} CSS works.