Angular HTML binding

0
0

I am writing an Angular application and I have an HTML response I want to display.

How do I do that? If I simply use the binding syntax {{myVal}} it encodes all HTML characters (of course).

I need somehow to bind the innerHTML of a div to the variable value.

  • You must to post comments
0
0

Syntax:

<div [innerHTML]="theHtmlString"></div>
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.