Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
hdastageeri
hft_awado_app
Commits
81349089
Commit
81349089
authored
Jan 06, 2020
by
Ratnadeep Rajendra Kharade
Browse files
Removed map when view changes
parent
421cb6b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/app/home/home.page.ts
View file @
81349089
...
...
@@ -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();
// }
}
}
src/app/myreservation/myreservation.page.ts
View file @
81349089
...
...
@@ -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();
// }
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment