I am loading HTML containing angular expression from database.
ex db html: <div>{{dynamicContent}} </div>
I already have ngModel for "dynamicContent" in my component. Problem: When I load html from db it prints as plain html. It should evaluate html and print ngModel value.
In angular 1 I was using $compile for same, how can I achive this with angular 6?
this.sanitizer.bypassSecurityTrustHtml(value);
<div class="col-md-4 col-sm-4 col-12 offset-md-1" innerHtml="{{dynamicContent}}">