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
  • Router.currentNavigation() method
  • UrlTree
  • NavigationExtras
  • Navigation

This view

  • Original page
  • New address

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

API

    
      interface Navigation {}
    
    

The unique identifier of the current navigation.

The target URL passed into the Router#navigateByUrl() call before navigation. This is the value before the router has parsed or applied redirects to it.

The initial target URL after being parsed with UrlHandlingStrategy.extract().

The extracted URL after redirects have been applied. This URL may not be available immediately, therefore this property can be undefined. It is guaranteed to be set after the RoutesRecognized event fires.

Identifies how this navigation was triggered.

Options that controlled the strategy used for this navigation. See NavigationExtras.

The previously successful Navigation object. Only one previous navigation is available, therefore this previous Navigation object has a null value for its own previousNavigation.

Aborts the navigation if it has not yet been completed or reached the point where routes are being activated. This function is a no-op if the navigation is beyond the point where it can be aborted.

Description

Information about a navigation operation. Retrieve the most recent navigation object with the Router.currentNavigation() method .

  • id : The unique identifier of the current navigation.
  • initialUrl : The target URL passed into the Router#navigateByUrl() call before navigation. This is the value before the router has parsed or applied redirects to it.
  • extractedUrl : The initial target URL after being parsed with UrlHandlingStrategy.extract().
  • finalUrl : The extracted URL after redirects have been applied. This URL may not be available immediately, therefore this property can be undefined. It is guaranteed to be set after the RoutesRecognized event fires.
  • trigger : Identifies how this navigation was triggered. -- 'imperative'--Triggered by router.navigateByUrl or router.navigate. -- 'popstate'--Triggered by a popstate event. -- 'hashchange'--Triggered by a hashchange event.
  • extras : A NavigationExtras options object that controlled the strategy used for this navigation.
  • previousNavigation : The previously successful Navigation object. Only one previous navigation is available, therefore this previous Navigation object has a null value for its own previousNavigation.
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.