[“Hello, How are you
0″ class=”button-container”>
<code> <button class="action-button" (click)="onButtonClick(button)">
{{ button.name }}
</button>
</div>
</div>"]`this is the string`
</code>
<code> <button class="action-button" (click)="onButtonClick(button)">
{{ button.name }}
</button>
</div>
</div>"]`this is the string`
</code>
<button class="action-button" (click)="onButtonClick(button)">
{{ button.name }}
</button>
</div>
</div>"]`this is the string`
I have stored above mentioned as a string in a variable but when I try to render it then it displays all the code as text.
I want that dynamic buttons should display and work.
I have tried DOM Sanitizer but through that I am getting this output. [Hello, how are you {{button.name}} ] button.name is button but that is not working as it should.
New contributor
Awais is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.