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.
Using JavaScript, I'll do something like this:
var d1 = document.getElementsByClassName('one');
d1.insertAdjacentHTML('beforeend', '<div class="two">two</div>');
How do I achieve the same result using typescript/angular2, RC5?
EDIT
The element with class .one
is generated by an external js, and I can't modify it.