UNPKG

667 BTypeScriptView Raw
1/**
2 * A list of providers. To use the router, you must add this to your application.
3 *
4 * ### Example ([live demo](http://plnkr.co/edit/iRUP8B5OUbxCWQ3AcIDm))
5 *
6 * ```
7 * import {Component} from '@angular/core';
8 * import {
9 * ROUTER_DIRECTIVES,
10 * ROUTER_PROVIDERS,
11 * RouteConfig
12 * } from '@angular/router-deprecated';
13 *
14 * @Component({directives: [ROUTER_DIRECTIVES]})
15 * @RouteConfig([
16 * {...},
17 * ])
18 * class AppCmp {
19 * // ...
20 * }
21 *
22 * bootstrap(AppCmp, [ROUTER_PROVIDERS]);
23 * ```
24 */
25export declare const ROUTER_PROVIDERS: any[];
26/**
27 * Use {@link ROUTER_PROVIDERS} instead.
28 *
29 * @deprecated
30 */
31export declare const ROUTER_BINDINGS: any[];