I am creating a small app using Angular2+Ionic2. In this app I want initialise google-map into view segment when user
Angular2+Ionic2
google-map
view segment
You can also call a function when ion-segment is changed.
and in your component a function like
updatePage(homeSegment) { if (homeSegment === 'map') { this.loadMap(); } }
Maybe this helps someone.