Route

export class Route

exported from angular2/router defined in angular2/src/router/route_config_impl.ts (line 13)

Route is a type of RouteDefinition used to route a path to a component.

It has the following properties:

Example

import {RouteConfig} from 'angular2/router'; @RouteConfig([ {path: '/home', component: HomeCmp, name: 'HomeCmp' } ]) class MyApp {}

Constructor

constructor({path, component, name, data, useAsDefault}: {
  path: string,
  component: Type, name?: string, data?: {[key: string]: any}, useAsDefault?: boolean
})

Not Yet Documented

Members

data : {[key: string]: any}

Not Yet Documented

path : string

Not Yet Documented

component : Type

Not Yet Documented

name : string

Not Yet Documented

useAsDefault : boolean

Not Yet Documented

aux : string

Not Yet Documented

loader : Function

Not Yet Documented

redirectTo : any[]

Not Yet Documented