Skip to content Skip to sidebar Skip to footer

Angular Html Binding Not Working

I am trying iterate over an array and create a DOM which is working fine but pipe is not working. I followed this example but this is also not working here. Here is the json [{

Solution 1:

That line needs to bind to innerHTML as well :

  <div>{{ques.ans}}</div>

To be as follows:

<div [innerHTML]="ques.ans | safeHtml"></div>

Post a Comment for "Angular Html Binding Not Working"