How to call webservice in ionic 2…I’m very confused with this all things…I trying to do this but I can’t do…plz help me and tell me how can call webservice in ionic 2…I’ don’t know more about angular 2 beacuse I’m begginer with ionic 2…I want live example and i’m using ionic version 3.7.0
import { Http } from '@angular/http';
import 'rxjs/add/operator/map';
this.http.get('Your web service url goes here')
.map(res => res.json()).subscribe(data => {
do something with the received data here
},
err => {
handle your error
});
I done this same coding but ‘property map does not exist on type observable’ is occurring
this.http.get('url')
.subscribe(data => {
alert(JSON.stringify(data));
},
err => {
alert(err);
});
hiii…
Can you please say the procedure…