ionic 3 http.post or get methods fired twice my code as below
this.httpService.post(this.APIs.getPGs, { userId: id }, result => {
console.log("test");
this.httpService.hideLoading();
if (result.statusCode) {
callback(result.data);
} else {
this.httpService.showAlert(result.message);
callback(false);
}
});
when i serve my results i see it fired twice as image :
Ionic Framework: 3.6.0
Ionic App Scripts: 2.1.3
Angular Core: 4.1.3
Angular Compiler CLI: 4.1.3
Node: 6.11.3
OS Platform: OS X El Capitan
Navigator Platform: MacIntel
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36
any solutions ?