Hi Sander / Team, Good Morning.
I am using Angular 7. I want to invoke an URL which returns HTML (that basically renders map from a site). Through the below program, I am able to hit the External Server URL ( http://localhost:3344/webappbuilder/apps/8) and it generates a blob (returning text/html). I want to manipulate the blob and place it on div to display the the html in the form of map. May I know how I can manipulate the blob and render the results(HTML) as map on Angular 7. and also let me know: How can I load an external HTML file ( http://localhost:3344/webappbuilder/apps/8/index.html) on my Angular page (Angular 7)? Expecting your response and please assist me. Thanks & Regards, M. Suresh Kumar ----------------- *TypeScript FIle:* import { Component, OnInit } from '@angular/core'; import { HttpClient } from '@angular/common/http'; @Component({ selector: 'app-web-app', templateUrl: './web-app.component.html', styleUrls: ['./web-app.component.css'] }) export class WebAppComponent implements OnInit{ // results: SearchResult[]; constructor(private http:HttpClient) { } ngOnInit(): void { console.log('Suresh'); // this.http.get(' http://localhost:3344/webappbuilder/apps/8').pipe(map((response: any) => response.json())).subscribe(response => console.log(response)); // this.http.get(' http://localhost:3344/webappbuilder/apps/8').subscribe(response => console.log(response)); const url = 'http://localhost:3344/webappbuilder/apps/8'; this.http.get(url, {responseType: 'blob'}) .subscribe((data:any) => { console.log(" The Data is", data); }); } } ------------ -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
