export class 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:
path
is a string that uses the route matcher DSL.component
a component type.name
is an optionalCamelCase
string representing the name of the route.data
is an optional property of any type representing arbitrary route metadata for the given route. It is injectable viaRouteData
.useAsDefault
is a boolean value. Iftrue
, the child route will be navigated to if no child route is specified during the navigation.
Example
Constructor
constructor({path, component, name, data, useAsDefault}: {
path: string,
component: Type, name?: string, data?: {[key: string]: any}, useAsDefault?: boolean
})
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}
data : {[key: string]: any}
Not Yet Documented
path : string
path : string
Not Yet Documented
component : Type
component : Type
Not Yet Documented
name : string
name : string
Not Yet Documented
useAsDefault : boolean
useAsDefault : boolean
Not Yet Documented
aux : string
aux : string
Not Yet Documented
loader : Function
loader : Function
Not Yet Documented
redirectTo : any[]
redirectTo : any[]
Not Yet Documented