export ROUTER_PROVIDERS : any[]
export ROUTER_PROVIDERS : any[]
exported from angular2/router defined in angular2/router.ts (line 84)
A list of Provider
s. To use the router, you must add this to your application.
Example (live demo)
import {Component} from 'angular2/core';
import {
ROUTER_DIRECTIVES,
ROUTER_PROVIDERS,
RouteConfig
} from 'angular2/router';
@Component({directives: [ROUTER_DIRECTIVES]})
@RouteConfig([
{...},
])
class AppCmp {
// ...
}
bootstrap(AppCmp, [ROUTER_PROVIDERS]);