Redirect

export class Redirect

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

Redirect is a type of RouteDefinition used to route a path to a canonical route.

It has the following properties:

Note that redirects do not affect how links are generated. For that, see the useAsDefault option.

Example

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

Constructor

constructor({path, redirectTo}: {path: string, redirectTo: any[]})

Not Yet Documented

Members

path : string

Not Yet Documented

redirectTo : any[]

Not Yet Documented

name : string

Not Yet Documented

loader : Function

Not Yet Documented

data : any

Not Yet Documented

aux : string

Not Yet Documented

useAsDefault : boolean

Not Yet Documented