I have an angular application, I have the following in component typescript:
field: string;
constructor() {
this.field = "Hello, I am <b>happy</b><br><br><input type='text' value='hello' />"
}
and in my html template for the component I have this:
<div [innerHTML]="field"></div>
I am expecting an output:
Hello, I am happy(happy in bold)
[Text input field here]
Instead the entire input tag is omitted. Any idea how to render html content like this onto a template in angular?