export class AsyncRoute
export class AsyncRoute
exported from angular2/router defined in angular2/src/router/route_config_impl.ts (line 96)
AsyncRoute is a type of RouteDefinition used to route a path to an asynchronously
loaded component.
It has the following properties:
pathis a string that uses the route matcher DSL.loaderis a function that returns a promise that resolves to a component.nameis an optionalCamelCasestring representing the name of the route.datais an optional property of any type representing arbitrary route metadata for the given route. It is injectable viaRouteData.useAsDefaultis a boolean value. Iftrue, the child route will be navigated to if no child route is specified during the navigation.
Example
Constructor
constructor({path, loader, name, data, useAsDefault}: {
path: string,
loader: Function, name?: string, data?: {[key: string]: any}, useAsDefault?: boolean
})
constructor({path, loader, name, data, useAsDefault}: {
path: string,
loader: Function, 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
loader : Function
loader : Function
Not Yet Documented
name : string
name : string
Not Yet Documented
useAsDefault : boolean
useAsDefault : boolean
Not Yet Documented
aux : string
aux : string
Not Yet Documented