0

I am working on project with Angular 12 and I have an HTML response I want to display. I want to bind innerHtml of div to variable value I use this syntax {{value}}

1 Answer 1

1

You should use [innerHTML] property binding to your element , like this :

<div [innerHTML]="response"></div>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.