cannot find name 27httpheaders 27

Solutions on MaxInterview for cannot find name 27httpheaders 27 by the best coders in the world

showing results for - "cannot find name 27httpheaders 27"
Sara
24 Feb 2016
1const headerDict = {
2  'Content-Type': 'application/json',
3  'Accept': 'application/json',
4  'Access-Control-Allow-Headers': 'Content-Type',
5}
6
7const requestOptions = {                                                                                                                                                                                 
8  headers: new HttpHeaders(headerDict), 
9};
10
11return this.http.get(this.heroesUrl, requestOptions)
12
Francesca
21 Aug 2017
1import { HttpHeaders } from '@angular/common/http';