From 03d16fcd24096518853b8a55deef82c538578ccb Mon Sep 17 00:00:00 2001 From: courtneypattison Date: Tue, 2 Jan 2018 09:49:49 -0800 Subject: [PATCH] docs(aio): add missing imports to interceptor example (#21259) PR Close #21259 --- aio/content/guide/http.md | 4 ++++ 1 file changed, 4 insertions(+) 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,