[SOLVED] Ionic4 Angular route history

I’m using the ionic angular to route.

Is there a way to access the ionic navigation stack to see what the previous route was? Or any history?

Ah solved it using IonRouterOutlet.canGoBack()