docs(aio): fix HttpClient's interceptor sample

This commit is contained in:
Kasidit Iamthong
2017-07-16 00:25:06 +10:00
committed by Alex Rickabaugh
parent e5da059994
commit b0346a6e45

View File

@ -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<any>, next: HttpHandler): Observable<HttpEvent<any>> {
return next.handle(Req);
return next.handle(req);
}
}
```