I am trying to embed a Hosted HTML page in my angular app. However the div is coming back blank. I followed this article and modified the code for angular 7 to no avail Angular4 Load external html page in a div
I console log out the result but it shows empty
My code is a as follows
template: any = '';
constructor(http: HttpClient) {
http.get('http://www.google.com').map((html: any) => this.template = html);
console.log(this.template);
}
<div [innerHtml]="template"></div>