|
|
|
@@ -26,6 +26,7 @@ export class MallsPage implements OnInit { |
|
|
|
|
|
|
|
ngOnInit() { |
|
|
|
this.getMallsByLocation(); |
|
|
|
this.getMallsByFoodType('pizza'); |
|
|
|
} |
|
|
|
|
|
|
|
toggleMallBookmark(index: number) { |
|
|
|
@@ -74,6 +75,12 @@ export class MallsPage implements OnInit { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
getMallsByFoodType(type: string) { |
|
|
|
this.mallService.mallsByTypes(type).then((data) => { |
|
|
|
console.log(data); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
getMallsByLocation() { |
|
|
|
if (navigator.geolocation) { |
|
|
|
this.toastService.presentToast("Getting malls based on your location...", "dark"); |
|
|
|
|