UNPKG

1.69 kBJavaScriptView Raw
1/**
2 * @module
3 * @description
4 * Maps application URLs into application states, to support deep-linking and navigation.
5 */
6export { RouterLink } from './src/directives/router_link';
7export { RouterOutlet } from './src/directives/router_outlet';
8export { RouteData, RouteParams } from './src/instruction';
9export { ROUTER_PRIMARY_COMPONENT, RouteRegistry } from './src/route_registry';
10export { RootRouter, Router } from './src/router';
11export * from './src/route_config/route_config_decorator';
12export * from './src/route_definition';
13export { CanActivate } from './src/lifecycle/lifecycle_annotations';
14export { Instruction, ComponentInstruction } from './src/instruction';
15export { OpaqueToken } from '@angular/core';
16export { ROUTER_PROVIDERS_COMMON } from './src/router_providers_common';
17export { ROUTER_PROVIDERS, ROUTER_BINDINGS } from './src/router_providers';
18import { RouterOutlet } from './src/directives/router_outlet';
19import { RouterLink } from './src/directives/router_link';
20/**
21 * A list of directives. To use the router directives like {@link RouterOutlet} and
22 * {@link RouterLink}, add this to your `directives` array in the {@link View} decorator of your
23 * component.
24 *
25 * ### Example ([live demo](http://plnkr.co/edit/iRUP8B5OUbxCWQ3AcIDm))
26 *
27 * ```
28 * import {Component} from '@angular/core';
29 * import {ROUTER_DIRECTIVES, ROUTER_PROVIDERS, RouteConfig} from '@angular/router-deprecated';
30 *
31 * @Component({directives: [ROUTER_DIRECTIVES]})
32 * @RouteConfig([
33 * {...},
34 * ])
35 * class AppCmp {
36 * // ...
37 * }
38 *
39 * bootstrap(AppCmp, [ROUTER_PROVIDERS]);
40 * ```
41 */
42export const ROUTER_DIRECTIVES = [RouterOutlet, RouterLink];
43//# sourceMappingURL=router.js.map
\No newline at end of file