W3cubDocs

/Angular 4 TypeScript

Route

Stable Interface

Interface Overview

interface Route {
  path : string
  pathMatch : string
  matcher : UrlMatcher
  component : Type<any>
  redirectTo : string
  outlet : string
  canActivate : any[]
  canActivateChild : any[]
  canDeactivate : any[]
  canLoad : any[]
  data : Data
  resolve : ResolveData
  children : Routes
  loadChildren : LoadChildren
  runGuardsAndResolvers : RunGuardsAndResolvers
}

Interface Description

See Routes for more details.

Interface Details

path : string
pathMatch : string
matcher : UrlMatcher
component : Type<any>
redirectTo : string
outlet : string
canActivate : any[]
canActivateChild : any[]
canDeactivate : any[]
canLoad : any[]
data : Data
resolve : ResolveData
children : Routes
loadChildren : LoadChildren
runGuardsAndResolvers : RunGuardsAndResolvers

exported from router/index, defined in router/src/config.ts

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