TypeScript - Append HTML to container element in Angular 2
<p>What I want to do is simply to append some html on an element.
I checked some links and found different confusing, non-working, non-recommended solutions.</p>
<p>Using JavaScript, I'll do something like this:</p>
<pre><code>var d1 = document.getElementsByClassName('one');
d1.insertAdjacentHTML('beforeend', '&lt;div class=&quot;two&quot;&gt;two&lt;/div&gt;');
</code></pre>
<p>How do I achieve the same result using typescript/angular2, RC5?</p>
<p><strong>EDIT</strong></p>
<p>The element with class <code>.one</code> is generated by an external js, and I can't modify it.</p>