Promise and subscribe
I have an Angular2 (ionic2) application. I have a function that request cities but I get an error that Property subscribe does not exists on this.cityService.getAllCities() . cityPage.ts has a function like this: getCities(){ this.cityService.getAllCities() .subscribe(cityData => { this.cityList = cityData; }, err => console.log(err), () => console.log('Complete!') ); } my cityService.getAllCities() function looks like this: getAllCities(){ return new Promise (resolve => { this.storage.ready().then(() => { this.storage.get('authData').then(authData => { let hdr = new Headers({'Content-Type':