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

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -