i have some screen, where i will call some url. But i know how to call the function using get and show the data.But now i want to send the parameter with url.
here my url.i need to send the parameter :
this.passingdata = { CatID: "2" };
This above parameter i need to send to below get url function
constructor(public viewCtrl: ViewController, public modalCtrl: ModalController, private http: Http, public loadingCtrl: LoadingController) {
let that = this
let loader = this.loadingCtrl.create({
content: "Please wait..."
});
loader.present();
that.http.get('http://www.example.com/api/tackj.php').map((res) => res.json()).subscribe((data: any) =>{
that.questions = data.QuestionsList;
loader.dismiss();
})
}
ionViewDidLoad() {
let that = this;
that.slides.lockSwipes(true);
that.slides.enableKeyboardControl(false);
}
Thank in advance !!