1

I am developing an application in Ionic4, I am using router-outlet for navigation. I want, when I navigate to a page, I should setup as root Page. Like in Ionic3, when we want to set page as root we do following.

this.navCtrl.setRoot('PageName');

In Ionic4, I am navigating like this

this.router.navigate(['/path']);

also how I can clear the history of last navigated pages in Ionic4.

any one can help me ?

Nadeem Yousaf
  • 563
  • 10
  • 31

1 Answers1

0

Kindly refer to Ionic 4 setRoot with Angular Router. As per this, Ionic 4 with Angular routing, there is no root page to be defined.

Inizio
  • 2,226
  • 15
  • 18
Ruben Sala
  • 271
  • 1
  • 10