Commit 81349089 authored by Ratnadeep Rajendra Kharade's avatar Ratnadeep Rajendra Kharade
Browse files

Removed map when view changes

parent 421cb6b4
......@@ -289,4 +289,13 @@ export class HomePage implements OnInit, OnDestroy {
//this.locationService.liveLocationSubject.unsubscribe();
}
ionViewDidLeave(){
if(this.mapElement) {
this.mapElement.nativeElement.remove();
}
// if(this.locationService.liveLocationSubject) {
// this.locationService.liveLocationSubject.unsubscribe();
// }
}
}
......@@ -346,4 +346,13 @@ export class MyreservationPage implements OnInit {
else
this.router.navigateByUrl('/hirebike');
}
ionViewDidLeave(){
if(this.mapElement) {
this.mapElement.nativeElement.remove();
}
// if(this.locationService.liveLocationSubject) {
// this.locationService.liveLocationSubject.unsubscribe();
// }
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment