From c6ad212a98c401f4de0b81f93b14687aab1abbb6 Mon Sep 17 00:00:00 2001 From: Kasidit Iamthong Date: Sun, 16 Jul 2017 00:25:06 +1000 Subject: [PATCH] docs(aio): fix HttpClient's interceptor sample --- aio/content/guide/http.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aio/content/guide/http.md b/aio/content/guide/http.md index 92362b4554..b69725442c 100644 --- a/aio/content/guide/http.md +++ b/aio/content/guide/http.md @@ -268,12 +268,12 @@ has a single `intercept()` method. Here is a simple interceptor which does nothi ```javascript import {Injectable} from '@angular/core'; -import {HttpEvent, HttpInterceptor, HttpHandler, HttpRequest) from '@angular/common/http'; +import {HttpEvent, HttpInterceptor, HttpHandler, HttpRequest} from '@angular/common/http'; @Injectable() export class NoopInterceptor implements HttpInterceptor { intercept(req: HttpRequest, next: HttpHandler): Observable> { - return next.handle(Req); + return next.handle(req); } } ```