defaultHistory in Ionic 4


#1

Hi,

How can i replace defaultHistory annotation in Ionic 4?

@IonicPage({
  defaultHistory: ['EmpresasPage']
})

#2

Documentation https://beta.ionicframework.com/docs/api/back-button says:

defaultHref

Attribute: default-href Type: string | undefined

The url to navigate back to by default when there is no history.

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