How to remove ion-toolbar when changing of view?


#1

I have a view with a ion-toolbar:

<ion-navbar *navbar aixam hideBackButton="true">
   <button menuToggle>
      <ion-icon name="menu" light></ion-icon>
   </button>
   <ion-title aixam class="logo"></ion-title>
</ion-navbar>
<ion-content class="choose-distributor">
   <ion-row class="message-row">
      <ion-col width-10 class="big-icon">
         <ion-icon name="alert" deepblue></ion-icon>
      </ion-col>
      <ion-col class="message">
         {{ "DISTRIBUTOR_MESSAGE"|translate }}
      </ion-col>
   </ion-row>

   <localize-me></localize-me>
   <write-address></write-address>
</ion-content>
<ion-toolbar position="bottom" lightergrey>
   <button full lightergrey (click)="onSubmit()" class="blue_content">{{ "DO_IT_LATER"|translate }}</button>
</ion-toolbar>

I change of view using a nav.push in the LocalizeMe component:

localizeMe() {
        Geolocation.getCurrentPosition().then((resp) => {
            this.nav.push(DistributorsListPage, {
                latitude: resp.coords.latitude,
                longitude: resp.coords.longitude
            });
        });
}

When the view is changing the new one continue to display the ion-toolbar.
Is it a way to remove it when changing of view ?