diff --git a/aio/content/guide/http.md b/aio/content/guide/http.md index e084e63ccc..bc68b712b7 100644 --- a/aio/content/guide/http.md +++ b/aio/content/guide/http.md @@ -273,6 +273,8 @@ has a single `intercept()` method. Here is a simple interceptor which does nothi import {Injectable} from '@angular/core'; import {HttpEvent, HttpInterceptor, HttpHandler, HttpRequest} from '@angular/common/http'; +import {Observable} from 'rxjs/Observable'; + @Injectable() export class NoopInterceptor implements HttpInterceptor { intercept(req: HttpRequest, next: HttpHandler): Observable> { @@ -297,6 +299,8 @@ Simply declaring the `NoopInterceptor` above doesn't cause your app to use it. Y import {NgModule} from '@angular/core'; import {HTTP_INTERCEPTORS} from '@angular/common/http'; +import {NoopInterceptor} from 'noop.interceptor.ts'; + @NgModule({ providers: [{ provide: HTTP_INTERCEPTORS,