0

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>
2

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.