A
A
Aleaxander Burykin2017-08-11 12:36:04
Angular
Aleaxander Burykin, 2017-08-11 12:36:04

Angular 4 how to trick ViewEncapsulation?

There is a component which contains

<div class="myClass" [innerHTML]="someVar.withHtmlTaggedString"></div>

the question
is whether it is possible, without resorting to ViewEncapsulation.None
in the style file, to apply styles to the tags that will come to this div from the server?
>>>, /deep/, and ::ng-deep - sort of deprecated, are there any other solutions, even crutches will do.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question