GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Docs
  • Tutorials
  • Playground
  • Reference
  • code
  • NavigationStart
  • EventType.NavigationStart

This view

  • Original page
  • New address

GeezerVison is showing next.angular.dev — NavigationStart • Angular

API

    
      class NavigationStart extends RouterEvent {}
    
    
@paramidnumber
@paramurlstring
@paramnavigationTriggerNavigationTrigger
@paramrestoredState{ [k: string]: any; navigationId: number; } | null
@returnsNavigationStart

Identifies the call or event that triggered the navigation. An imperative trigger is a call to router.navigateByUrl() or router.navigate().

The navigation state that was previously supplied to the pushState call, when the navigation is triggered by a popstate event. Otherwise null.

The state object is defined by NavigationExtras, and contains any developer-defined state value, as well as a unique ID that the router assigns to every router transition/navigation.

From the perspective of the router, the router never "goes back". When the user clicks on the back button in the browser, a new navigation ID is created.

Use the ID in this previous-state object to differentiate between a newly created state and one returned to by a popstate event, so that you can restore some remembered state, such as scroll position.

A unique ID that the router assigns to every router navigation.

The URL that is the destination for this navigation.

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.