July 2018
Intermediate to advanced
420 pages
8h 46m
English
Now that we have our interceptor configured and ready to be used, we need to add it into the main application module:
import { AppHttpInterceptorService } from './shared/_services/app-http-interceptor.service';
{
provide: HTTP_INTERCEPTORS,
useClass: AppHttpInterceptorService ,
multi: true
}
import { BrowserModule, Title } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; ...Read now
Unlock full access