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 47b3ecd9a3
commit c6ad212a98
1 changed files with 2 additions and 2 deletions

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);
}
}
```