docs(aio): fix HttpClient's interceptor sample
This commit is contained in:
		
							parent
							
								
									47b3ecd9a3
								
							
						
					
					
						commit
						c6ad212a98
					
				| @ -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); | ||||
|   } | ||||
| } | ||||
| ``` | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user