UNPKG

1.1 kBJavaScriptView Raw
1"use strict";
2var common_1 = require('@angular/common');
3var platform_browser_1 = require('@angular/platform-browser');
4var router_providers_common_1 = require('./router_providers_common');
5/**
6 * A list of providers. To use the router, you must add this to your application.
7 *
8 * ### Example ([live demo](http://plnkr.co/edit/iRUP8B5OUbxCWQ3AcIDm))
9 *
10 * ```
11 * import {Component} from '@angular/core';
12 * import {
13 * ROUTER_DIRECTIVES,
14 * ROUTER_PROVIDERS,
15 * RouteConfig
16 * } from '@angular/router-deprecated';
17 *
18 * @Component({directives: [ROUTER_DIRECTIVES]})
19 * @RouteConfig([
20 * {...},
21 * ])
22 * class AppCmp {
23 * // ...
24 * }
25 *
26 * bootstrap(AppCmp, [ROUTER_PROVIDERS]);
27 * ```
28 */
29exports.ROUTER_PROVIDERS = [
30 router_providers_common_1.ROUTER_PROVIDERS_COMMON,
31 /*@ts2dart_const*/ (
32 /* @ts2dart_Provider */ { provide: common_1.PlatformLocation, useClass: platform_browser_1.BrowserPlatformLocation }),
33];
34/**
35 * Use {@link ROUTER_PROVIDERS} instead.
36 *
37 * @deprecated
38 */
39exports.ROUTER_BINDINGS = exports.ROUTER_PROVIDERS;
40//# sourceMappingURL=router_providers.js.map
\No newline at end of file