I'm encountering an issue with my 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)));
}
}
Even though I have all the necessary imports and trigger it on a button press, nothing is getting logged to the console. This is frustrating as I am just starting out with Rxjs. Can anyone help me understand why the data is not being logged? Your assistance would be greatly appreciated.