Ionic 2 / Angular 2 component lifecycle hooks

Viewed 6736

I have a component in a page that I need to hook in to every time the page is navigated to. It contains a mapbox map and I'm finding that it's not resizing correctly if a user registers using the register page and pulls up the keyboard and then goes back to the map page the map div is smaller because the user pulled open the keyboard on their phone. I hope this makes sense?

I've tried all the hooks listed here https://angular.io/guide/lifecycle-hooks but none of them fire each time the page is navigated to.

Any help would be great.

1 Answers
Related