Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70919

[ionic-v4] styling dynamic content of innerHTML

$
0
0

@mthomka wrote:

I’m trying to figure out a proper way of how to apply styles of a dynamic html snippets that i load from the server and inject via [innerHTML]. In ionic v3 the styles that were in the page/component .scss file were applied, however with ionic 4 this is not the case anymore (i sort of understand why).

If i put the styles in global.scss file , they get applied, but they are ignored if i try to move them inside the page/component .scss file. Is there a more correct way of dealing with this other than using global.scss?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70919

Trending Articles