Token used to bind the component with the top-level RouteConfigs for the 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]);