My goal is to add some HTML content to an element. After researching various solutions online, I came across many confusing and ineffective methods.
To achieve this using JavaScript, I can use the following code:
var d1 = document.getElementsByClassName('one');
d1.insertAdjacentHTML('beforeend', '<div class="two">two</div>');
Is there a way to accomplish the same task using typescript/angular2, specifically with RC5?
EDIT
The element with class .one
is generated by an external JS script that cannot be modified.