Sign Up

Sign In

Forget Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask question.

Discy Latest Questions

  • 0

I have an auth-interceptor.service.ts to handle the requests import {Injectable} from '@angular/core'; import {HttpErrorResponse, HttpEvent, HttpHandler, HttpInterceptor, HttpRequest} from '@angular/common/http'; import {Observable} from 'rxjs/Observable'; import {Cookie} from './cookie.service'; import {Router} from '@angular/router';@Injectable() export class AuthInterceptor implements HttpInterceptor { constructor(private router: Router) {} ...

  • 0

I created this HTTPInterceptor to be able to better handle http errors, it was working well before I did a git pull and ran npm install. This is my code: import {Injectable} from '@angular/core'; import {HttpEvent, HttpInterceptor, HttpHandler, HttpRequest, HttpResponse} from '@angular/common/http'; import {Observable} ...

  • 0

How to add multiple, independent HTTP interceptors to an Angular 4 application? I tried to add them by extending the providers array with more than one interceptors. But only the last one is actually executed, Interceptor1 is ignored. @NgModule({ declarations: [ /* ... */ ], ...