I am new in Angular What I am going to try is to get the HTML of a page and reproduce it into an iFrame (it is an exercise). I am using the following piece of code:
var prova = this._http.get(myUrl, {responseType: "text"}).subscribe((x) =>{
console.log(x);
});
I did it on a website (if is needed I can also insert the name of the pages) and it returns the html only of some pages. In the other case the string x is empty. Could it depend on connection? Or there is some way to wait the end of the get request? Or simply is wrong my approach and I should make a different type of request?