I'm trying to bind html content to a div in my Angular 6 app but it doesn't work.
Here is the content:
let content = 'Hello <a routerLink="['/Soja']">Nick Soja</a> How are you ?'
Here is the html part:
<div class="content" [innerHTML]="content"></div>
Now only Hello
is binded. I don't see the rest of the html content. The expected result is:
'Hello Nick Soja How are you ?'
What's wrong ?