s

how do I display html inside an angular interpolation or binding edit button Edit

author
Murugan Andezuthu Dharmaratnam | calendar 25 November 2020 | 1826

It is not possible to bind data returned from the server using binding [(ngModel)]="mydata" or using interpolation {{mydata}}. In my application, I wanted to bind the data returned from an api to the view.

Solution

The only solution is to to use innerHTML to bind the data

<p [innerhtml]="mydata"></p>