Questions tagged as 'angular-5'

2
answers

Angular 5 + Ionic 3: I can not send headers in API requests

I am consuming an API through a post method and need to send in the Authorization header. I'm doing the following: public post(resource, body, authorization = false): Observable<any> { const headers = new HttpHeaders(); headers....
asked by 22.03.2018 / 14:41
1
answer

Resolving non-angular promise

I'm working on an application with Ionic 3 + Angular 5 and I have to get an Ionic storage value as follows: this.userStorageService.get('expiresIn') .then((data) => this.tokenExpirationTimeFromApi = data); console.log(this.tok...
asked by 14.03.2018 / 12:27
0
answers

API Requests with Ionic 3

I have a method in an Ionic 3 (local) application consuming features of an external API, using the following method: post(resource, body): Observable<any> { return this.http .post<Observable<any>>('${this.apiUrl}$...
asked by 08.03.2018 / 21:44