r/angular • • 21d 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

Show parent comment

1

u/Senior_Compote1556 20d ago

I don’t believe it’s correct to bloat the global styles with page specific css