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