ExtraOptions

interface

npm Package @angular/router
Module import { ExtraOptions } from '@angular/router';
Source router/src/router_module.ts

Represents options to configure the router.

Interface Overview

interface ExtraOptions { 
  enableTracing?: boolean
  useHash?: boolean
  initialNavigation?: InitialNavigation
  errorHandler?: ErrorHandler
  preloadingStrategy?: any
}

Members

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.

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v4.angular.io/api/router/ExtraOptions