• Overview
@angular/common

PlatformNavigation

Class

This class wraps the platform Navigation API which allows server-specific and test implementations.

API

    
      abstract class PlatformNavigation implements Navigation {}
    
    

entries

NavigationHistoryEntry[]
@returnsNavigationHistoryEntry[]

currentEntry

any

updateCurrentEntry

void
@paramoptionsNavigationUpdateCurrentEntryOptions
@returnsvoid

transition

any

canGoBack

boolean

canGoForward

boolean

reload

NavigationResult
@paramoptionsany
@returnsNavigationResult

traverseTo

NavigationResult
@paramkeystring
@paramoptionsany
@returnsNavigationResult

back

NavigationResult
@paramoptionsany
@returnsNavigationResult

forward

NavigationResult
@paramoptionsany
@returnsNavigationResult

onnavigate

((this: Navigation, ev: NavigateEvent) => any) | null

onnavigatesuccess

((this: Navigation, ev: Event) => any) | null

onnavigateerror

((this: Navigation, ev: ErrorEvent) => any) | null

oncurrententrychange

((this: Navigation, ev: NavigationCurrentEntryChangeEvent) => any) | null

addEventListener

void
@paramtypeunknown
@paramlistenerunknown
@paramoptionsunknown
@returnsvoid

removeEventListener

void
@paramtypeunknown
@paramlistenerunknown
@paramoptionsunknown
@returnsvoid

dispatchEvent

boolean
@parameventEvent
@returnsboolean

Description

This class wraps the platform Navigation API which allows server-specific and test implementations.

Browser support is limited, so this API may not be available in all environments, may contain bugs, and is experimental.

Jump to details