ExtraOptions

Stable Interface

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 @angular/router/index, defined in @angular/router/src/router_module.ts

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v2.angular.io/docs/ts/latest/api/router/index/ExtraOptions-interface.html