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

Murugan Andezuthu Dharmaratnam | 25 November 2020 | 173

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>