I've got a testing routine that creates a div tag, appends it to the body, and then sets its innerHTML property to:
<p>{{testVar}}</p>
All with Javascript, like so:
var created = document.createElement('h1');
var elem = document.body.appendChild(created);
elem.innerHTML='<p>{{testVar}}</p>';
It then shows up on the page, double curly brackets and all. What is the correct way to dynamically add this single element to my page so that the interpolation is recognized?