docs(aio): fix HttpClient setting new header sample
This commit is contained in:
parent
37c626e673
commit
4dd6863bc2
@ -352,7 +352,7 @@ A common use of interceptors is to set default headers on outgoing responses. Fo
|
|||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
import {Injectable} from '@angular/core';
|
import {Injectable} from '@angular/core';
|
||||||
import {HttpEvent, HttpInterceptor, HttpHandler, HttpRequest) from '@angular/common/http';
|
import {HttpEvent, HttpInterceptor, HttpHandler, HttpRequest} from '@angular/common/http';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class AuthInterceptor implements HttpInterceptor {
|
export class AuthInterceptor implements HttpInterceptor {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user