Hi ! Please, how to solve this error?
return this.http.get(webServiceEndpoint + '/species',{
headers: {
'Accept': 'application/json, text/plain, */*',
'Access-Control-Allow-Origin': '*',
'Authorization': sessionStorage.id_token
}
})
Argument of type '{ headers: { string; 'Access-Control-Allow-Origin': string; 'Authorization': any; }; }' is not assignable to parameter of type 'RequestOptionsArgs’.
Property 'id_token' does not exist on type ‘Storage’
Thanks!
I have some more:
.map((species: Array<any>) => {
let result:Array<SpecieModel> = [];
if (species) {
species.species.forEach((specie) => {
Property 'species' does not exist on type 'any[]’
This is for google analytics:
ga('send', 'pageview', '/d');
Cannot find name 'ga’.