I have a Angular 6 application that interacts with the python API. The API responds with HTML data that I want to display on my existing page within a specific div element. I have attempted various methods but have not been successful.
Test.ts
public myTemplate = `
<!DOCTYPE html>
...
// HTML content goes here
...
</html>`;
Test.html
<div [innerHtml]="myTemplate">
</div>
However, the HTML content is being rendered as text in the DOM instead of actual HTML elements. I am seeking assistance in resolving this issue.