I am trying add a button in addition to the element's template. Where can I define the template of the additional element which needs to be added?
this.view.createEmbeddedView(this.template);
The above code lets me add only TemplateRef. Where to define the <template> and how to get the reference TemplateRef of it?
I tried doing this.el.nativeElement.insertAdjacentHTML('beforeend','<div>One</div>'). This adds the element but the added html is not Angular compiled.