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:

Example

import {RouteConfig} from 'angular2/router'; @RouteConfig([ {path: '/home', loader: () => Promise.resolve(MyLoadedCmp), name: 'MyLoadedCmp'} ]) class MyApp {}

Constructor

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}

Not Yet Documented

path : string

Not Yet Documented

loader : Function

Not Yet Documented

name : string

Not Yet Documented

useAsDefault : boolean

Not Yet Documented

aux : string

Not Yet Documented