After creating a DOM element with
this.document.createElement('h1')
, I am looking to insert the element into a section tag using a template reference variable (myTRF), similar to the example below:
<section>
<h1 #myTRF>This is my heading</h1>
</section>
Is there a method for accomplishing this in Angular?