ROUTER_PROVIDERS = const [ROUTER_PROVIDERS_COMMON, const Provider(PlatformLocation, useClass: BrowserPlatformLocation)]

A list of Providers. 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]);