Answers for "ionic native http promise to observable"

0

ionic native http promise to observable

getCaiyunForecast(): Observable<any> {
    return from(this._http.get(this.forecastUrl, {}, {})
      .then(res => { return JSON.parse(res.data) }, res => console.log(res.data)));
}
Posted by: Guest on November-28-2020

Code answers related to "ionic native http promise to observable"

Browse Popular Code Answers by Language