Call webservice in ionic using Http


#1

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


#2


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
			});

#3

I done this same coding but ‘property map does not exist on type observable’ is occurring


#4
this.http.get('url')
            .subscribe(data => {
                alert(JSON.stringify(data));
       },
            err => {
                alert(err);
      });

#5

hiii…

Can you please say the procedure…