Example of rendering angular template from external source on the fly.
Pass you template structure to HTML-RENDERER
component.
<html-renderer [content]="testHtml"></html-renderer>
For example see: app.component
Clone the repo and run npm i
then run npm run start
.