docs(aio): fix HttpClient setting new header sample
This commit is contained in:
parent
7d0f2cd51e
commit
2a2fe11e8d
|
@ -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…
Reference in New Issue