Set html in Angular2 dialog
<p>I am using this <a href="https://github.com/dvorapa/dialog-dart" rel="nofollow">library</a> to make dialogs. I want to set my own HTML in dialog. I want to do it from template. I made it so :</p>

<pre><code>TemplateElement templateElement = new TemplateElement()
      ..appendHtml('Hello [username]')
      ..setAttribute('username', 'USER');
</code></pre>

<p>Then:</p>

<pre><code>Dialog dialog = new Dialog(
        [templateElement],
        "Sample title", true,
        'Cancel', 'Ок');
</code></pre>

<p>And have this in html on page:</p>

<pre><code>    &lt;template username="USER"&gt;
        Hello [username]    
    &lt;/template&gt;
</code></pre>

<p>So I need to convert TemplateElement to HtmlElement. I don't understand, how can I do it.</p>