ROUTER_PRIMARY_COMPONENT: OpaqueToken

export ROUTER_PRIMARY_COMPONENT : OpaqueToken

exported from angular2/router defined in angular2/src/router/route_registry.ts (line 70)

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]);