Is there a way to utilize innerHTML from TypeScript code in Angular 2 RC4? I'm facing an issue: I need to dynamically add precompiled HTML code when a specific button is clicked. For instance:
TypeScript code
private addHTML() {
// not sure how to include the HTML here
}
HTML code
<div class="form-group row">
<label for="exampleSelect1" class="col-xs-2 col-form-label">My HTML code</label>
<div class="col-xs-10">
<button type="button" class="btn btn-primary" (click)="addHTML">ADD</button>
</div>
<hr>
Perhaps this approach is incorrect. Any advice would be appreciated, thank you.