IONIC Back Button

Use this code to add a back button at the top of your navigation. Simply use this code:

    <ion-buttons slot="start">
      <ion-back-button defaultHref="/"></ion-back-button>
    </ion-buttons>

As you can see, its that simple.

This is how the whole header can look for example:

<ion-header>
  <ion-toolbar color="primary">
    <ion-buttons slot="start">
      <ion-back-button defaultHref="/"></ion-back-button>
    </ion-buttons>
    <ion-title>Addition</ion-title>
    <ion-buttons slot="end">
      <ion-menu-button menu="main-manu"></ion-menu-button>
    </ion-buttons>
  </ion-toolbar>
</ion-header>