you can do it like follow if you want it in div only then
<div [innerHtml]="navSrv.html"></div>
Apart from this you can also do it like below :
<div #divID ></div>
And then bind it like this way
@ViewChild('divID') divID: ElementRef;
loadHtml(){
this.divID.nativeElement.innerHTML = this.html;
}
The second part is useful when the html string is very much large.
EDIT
As your requirement if you have <script> tag then you can do if as follows
const element = document.createRange().createContextualFragment(this.html);
this.divID.appendChild(fragment);