Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230188

Interpolate string that contains html

$
0
0

Okay thank you, but there still is a problem:
if I use <div [innerHTML]="text"></div> I get the text from the string but not the styling.
If I use

let div = document.getElementById('text');
div.innerHTML = this.text;

it works, why does the other way not work?


Viewing all articles
Browse latest Browse all 230188

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>