Help Angular by taking a 1 minute survey!Go to surveyHome

Navigation

Information about any given navigation. This information can be gotten from the router at any time using the router.getCurrentNavigation() method.

type Navigation = { id: number; initialUrl: string | UrlTree; extractedUrl: UrlTree; finalUrl?: UrlTree; trigger: 'imperative' | 'popstate' | 'hashchange'; extras: NavigationExtras; previousNavigation: Navigation | null; };
      
      type Navigation = {
    id: number;
    initialUrl: string | UrlTree;
    extractedUrl: UrlTree;
    finalUrl?: UrlTree;
    trigger: 'imperative' | 'popstate' | 'hashchange';
    extras: NavigationExtras;
    previousNavigation: Navigation | null;
};