What it does
Represents options to configure the router.
Interface Overview
interface ExtraOptions {
enableTracing
: boolean
useHash
: boolean
initialNavigation
: InitialNavigation
errorHandler
: ErrorHandler
preloadingStrategy
: any
}
Interface Description
Interface Details
enableTracing : boolean
Makes the router log all its internal events to the console.
useHash : boolean
Enables the location strategy that uses the URL fragment instead of the history API.
initialNavigation : InitialNavigation
Disables the initial navigation.
errorHandler : ErrorHandler
A custom error handler.
preloadingStrategy : any
Configures a preloading strategy. See PreloadAllModules
.
exported from router/index, defined in router/src/router_module.ts