When I use innerHTML like this the buttons will not show in the view. The button tags are remove.
inside component
const htmldata = '<button>test</button>
template
<div class="body" [innerHTML]="htmldata"></div>
When I use innerHTML like this the buttons will not show in the view. The button tags are remove.
inside component
const htmldata = '<button>test</button>
template
<div class="body" [innerHTML]="htmldata"></div>