UNPKG

1.62 kBTypeScriptView 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 { OnActivate, OnDeactivate, OnReuse, CanDeactivate, CanReuse } from './src/interfaces';
14export { CanActivate } from './src/lifecycle/lifecycle_annotations';
15export { Instruction, ComponentInstruction } from './src/instruction';
16export { OpaqueToken } from '@angular/core';
17export { ROUTER_PROVIDERS_COMMON } from './src/router_providers_common';
18export { ROUTER_PROVIDERS, ROUTER_BINDINGS } from './src/router_providers';
19/**
20 * A list of directives. To use the router directives like {@link RouterOutlet} and
21 * {@link RouterLink}, add this to your `directives` array in the {@link View} decorator of your
22 * component.
23 *
24 * ### Example ([live demo](http://plnkr.co/edit/iRUP8B5OUbxCWQ3AcIDm))
25 *
26 * ```
27 * import {Component} from '@angular/core';
28 * import {ROUTER_DIRECTIVES, ROUTER_PROVIDERS, RouteConfig} from '@angular/router-deprecated';
29 *
30 * @Component({directives: [ROUTER_DIRECTIVES]})
31 * @RouteConfig([
32 * {...},
33 * ])
34 * class AppCmp {
35 * // ...
36 * }
37 *
38 * bootstrap(AppCmp, [ROUTER_PROVIDERS]);
39 * ```
40 */
41export declare const ROUTER_DIRECTIVES: any[];