I have code:
export class Test {
constructor(private http: Http) {}
logResponse(): Observable<any> {
return this.http.get('http://google.com')
.do(data => console.log("All: " + JSON.stringify(data)));
}
}
But still, nothing gets printed out to the console sadly. I am just starting with Rxjs, so sorry for the lame question. Why is it not logged ? I have all the http and imports needed, no exception just nothing gets printed. I trigger it on a button press.