Previous Routing


#1

I am routing between pages by -

let navigationExtras: NavigationExtras = {
queryParams: {},
relativeTo: this.activatedRoute
};
this.router.navigate([‘page-name’, this.tripId, item.ItemId], navigationExtras);

Sometimes I arrive to certain page from one page and sometimes from other, how can I know from which page I came from?

Thanks.