ionic native http promise to observable code example
Example: 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)));
}