• Overview
@angular/router

NavigationSkipped

Class

An event triggered when a navigation is skipped. This can happen for a couple reasons including onSameUrlHandling is set to ignore and the navigation URL is not different than the current state.

API

  
    class NavigationSkipped extends RouterEvent {}
  
  

constructor

NavigationSkipped
@paramidnumber
@paramurlstring
@paramreasonstring

A description of why the navigation was skipped. For debug purposes only. Use code instead for a stable skipped reason that can be used in production.

@paramcodeNavigationSkippedCode | undefined

A code to indicate why the navigation was skipped. This code is stable for the reason and can be relied on whereas the reason string could change and should not be used in production.

reason

string

A description of why the navigation was skipped. For debug purposes only. Use code instead for a stable skipped reason that can be used in production.

id

number

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

url

string

The URL that is the destination for this navigation.

Jump to details