UNPKG

2.56 kBJavaScriptView Raw
1/**
2 * @module
3 * @description
4 * Maps application URLs into application states, to support deep-linking and navigation.
5 */
6"use strict";
7function __export(m) {
8 for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
9}
10var router_link_1 = require('./src/directives/router_link');
11exports.RouterLink = router_link_1.RouterLink;
12var router_outlet_1 = require('./src/directives/router_outlet');
13exports.RouterOutlet = router_outlet_1.RouterOutlet;
14var instruction_1 = require('./src/instruction');
15exports.RouteData = instruction_1.RouteData;
16exports.RouteParams = instruction_1.RouteParams;
17var route_registry_1 = require('./src/route_registry');
18exports.ROUTER_PRIMARY_COMPONENT = route_registry_1.ROUTER_PRIMARY_COMPONENT;
19exports.RouteRegistry = route_registry_1.RouteRegistry;
20var router_1 = require('./src/router');
21exports.RootRouter = router_1.RootRouter;
22exports.Router = router_1.Router;
23__export(require('./src/route_config/route_config_decorator'));
24var lifecycle_annotations_1 = require('./src/lifecycle/lifecycle_annotations');
25exports.CanActivate = lifecycle_annotations_1.CanActivate;
26var instruction_2 = require('./src/instruction');
27exports.Instruction = instruction_2.Instruction;
28exports.ComponentInstruction = instruction_2.ComponentInstruction;
29var core_1 = require('@angular/core');
30exports.OpaqueToken = core_1.OpaqueToken;
31var router_providers_common_1 = require('./src/router_providers_common');
32exports.ROUTER_PROVIDERS_COMMON = router_providers_common_1.ROUTER_PROVIDERS_COMMON;
33var router_providers_1 = require('./src/router_providers');
34exports.ROUTER_PROVIDERS = router_providers_1.ROUTER_PROVIDERS;
35exports.ROUTER_BINDINGS = router_providers_1.ROUTER_BINDINGS;
36var router_outlet_2 = require('./src/directives/router_outlet');
37var router_link_2 = require('./src/directives/router_link');
38/**
39 * A list of directives. To use the router directives like {@link RouterOutlet} and
40 * {@link RouterLink}, add this to your `directives` array in the {@link View} decorator of your
41 * component.
42 *
43 * ### Example ([live demo](http://plnkr.co/edit/iRUP8B5OUbxCWQ3AcIDm))
44 *
45 * ```
46 * import {Component} from '@angular/core';
47 * import {ROUTER_DIRECTIVES, ROUTER_PROVIDERS, RouteConfig} from '@angular/router-deprecated';
48 *
49 * @Component({directives: [ROUTER_DIRECTIVES]})
50 * @RouteConfig([
51 * {...},
52 * ])
53 * class AppCmp {
54 * // ...
55 * }
56 *
57 * bootstrap(AppCmp, [ROUTER_PROVIDERS]);
58 * ```
59 */
60exports.ROUTER_DIRECTIVES = [router_outlet_2.RouterOutlet, router_link_2.RouterLink];
61//# sourceMappingURL=router.js.map
\No newline at end of file