angular2 template - Angular HTML binding -


i writing angular application, , have html response want display. how do that? if use binding syntax {{myval}} encodes html characters (of course).

i need somehow bind inner html of div variable value.

the correct syntax following:

<div [innerhtml]="thehtmlstring"></div> 

working in 5.0.2

documentation reference


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -