I have a complex string in my angular application component typescript
field: string;
constructor() {
this.field = "Hello, I am <b>happy</b><br><br><input type='text' value='hello' />"
}
The corresponding html template for the component includes:
<div [innerHTML]="field"></div>
The expected output is:
Hello, I am happy (happy in bold)
[Text input field here]
However, the entire input tag is getting omitted. Any suggestions on how to properly render HTML content like this in an angular template?