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

Upgrade php version of xampp not success -

amazon web services - S3 and apache mod_proxy with basic authentication -

powershell - This solution contains one or more assemblies targeted for the global assembly cache -