Hi all,
Usually this would work in regular javascript but its causing an issue in ionic/typescript and I can’t figure out why.
Error: function not found -> this.DriverFound()
DriverFound() {
this.isPickupActivated = true;
}
RequestPickup() {
console.log("Pickup requested");
this.isPickupRequested = false;
let loader = this.loadingCtrl.create({
content: "Searching for driver. . .",
duration: 3000
});
loader.present();
setTimeout(function(){ this.DriverFound(); }, 3000);
}