I was following this answer by Thierry Templier
, but run into some troubles when defining error interceptors (other interceptors are working).
I have the following:
get(url: string, options?: RequestOptionsArgs): Observable<Response> {
console.log('get...');
return super.get(url, options).catch(res => {
this.router.navigate(['Login']);
return Observable.of(res)
});
}
Which throws :
vendor.min.js:38333 ORIGINAL EXCEPTION: TypeError: _super.prototype.get.call(...).catch is not a function
Any ideas?