I have a component with an iframe like this:
<iframe [innerHTML]="html"></iframe>
if I do:
<div [innerHTML]="html"></div>
it works fine. But I need it to be an iframe for it has customs styles and scripts that must run outside the current page's context.
I've tryed using "DomSanitizer" with no effect
this.html = this.sanitizer.bypassSecurityTrustHtml(someHtmlStuff);
what could be the cause? The iframe ends up completelly empty and its html cannot be inspected in chrome's inspector