2016-02-25 20:04:59 +00:00
|
|
|
import {ROUTER_PROVIDERS_COMMON} from './router_providers_common';
|
2016-01-21 17:58:28 +00:00
|
|
|
|
2016-05-03 18:35:07 +00:00
|
|
|
/**
|
2016-06-03 00:30:40 +00:00
|
|
|
* A list of providers. To use the router, you must add this to your application.
|
2016-05-03 18:35:07 +00:00
|
|
|
*
|
|
|
|
|
* ```
|
|
|
|
|
* import {Component} from '@angular/core';
|
|
|
|
|
* import {
|
|
|
|
|
* ROUTER_DIRECTIVES,
|
|
|
|
|
* ROUTER_PROVIDERS,
|
|
|
|
|
* Routes
|
|
|
|
|
* } from '@angular/router';
|
|
|
|
|
*
|
|
|
|
|
* @Component({directives: [ROUTER_DIRECTIVES]})
|
|
|
|
|
* @Routes([
|
|
|
|
|
* {...},
|
|
|
|
|
* ])
|
|
|
|
|
* class AppCmp {
|
|
|
|
|
* // ...
|
|
|
|
|
* }
|
|
|
|
|
*
|
|
|
|
|
* bootstrap(AppCmp, [ROUTER_PROVIDERS]);
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
2016-05-13 20:22:29 +00:00
|
|
|
// TODO: merge with router_providers_common.ts
|
|
|
|
|
export const ROUTER_PROVIDERS: any[] = /*@ts2dart_const*/[ROUTER_PROVIDERS_COMMON];
|