|
|
|
@@ -25,7 +25,17 @@ export class MallsPage implements OnInit { |
|
|
|
) { } |
|
|
|
|
|
|
|
ngOnInit() { |
|
|
|
if (localStorage.allMalls) { |
|
|
|
this.allMalls = JSON.parse(localStorage.allMalls); |
|
|
|
this.tempMalls = JSON.parse(localStorage.allMalls); |
|
|
|
} else { |
|
|
|
this.getMallsByLocation() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
doRefresh(e: any) { |
|
|
|
this.getMallsByLocation(); |
|
|
|
e.target.complete(); |
|
|
|
} |
|
|
|
|
|
|
|
toggleSearchBar() { |
|
|
|
|