72 lines
7.8 KiB
JavaScript
72 lines
7.8 KiB
JavaScript
|
'use strict';/**
|
||
|
* @module
|
||
|
* @description
|
||
|
* Maps application URLs into application states, to support deep-linking and navigation.
|
||
|
*/
|
||
|
function __export(m) {
|
||
|
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
||
|
}
|
||
|
var router_1 = require('./src/router/router');
|
||
|
exports.Router = router_1.Router;
|
||
|
var router_outlet_1 = require('./src/router/directives/router_outlet');
|
||
|
exports.RouterOutlet = router_outlet_1.RouterOutlet;
|
||
|
var router_link_1 = require('./src/router/directives/router_link');
|
||
|
exports.RouterLink = router_link_1.RouterLink;
|
||
|
var instruction_1 = require('./src/router/instruction');
|
||
|
exports.RouteParams = instruction_1.RouteParams;
|
||
|
exports.RouteData = instruction_1.RouteData;
|
||
|
var platform_location_1 = require('./src/router/location/platform_location');
|
||
|
exports.PlatformLocation = platform_location_1.PlatformLocation;
|
||
|
var route_registry_1 = require('./src/router/route_registry');
|
||
|
exports.RouteRegistry = route_registry_1.RouteRegistry;
|
||
|
exports.ROUTER_PRIMARY_COMPONENT = route_registry_1.ROUTER_PRIMARY_COMPONENT;
|
||
|
var location_strategy_1 = require('./src/router/location/location_strategy');
|
||
|
exports.LocationStrategy = location_strategy_1.LocationStrategy;
|
||
|
exports.APP_BASE_HREF = location_strategy_1.APP_BASE_HREF;
|
||
|
var hash_location_strategy_1 = require('./src/router/location/hash_location_strategy');
|
||
|
exports.HashLocationStrategy = hash_location_strategy_1.HashLocationStrategy;
|
||
|
var path_location_strategy_1 = require('./src/router/location/path_location_strategy');
|
||
|
exports.PathLocationStrategy = path_location_strategy_1.PathLocationStrategy;
|
||
|
var location_1 = require('./src/router/location/location');
|
||
|
exports.Location = location_1.Location;
|
||
|
__export(require('./src/router/route_config/route_config_decorator'));
|
||
|
__export(require('./src/router/route_definition'));
|
||
|
var lifecycle_annotations_1 = require('./src/router/lifecycle/lifecycle_annotations');
|
||
|
exports.CanActivate = lifecycle_annotations_1.CanActivate;
|
||
|
var instruction_2 = require('./src/router/instruction');
|
||
|
exports.Instruction = instruction_2.Instruction;
|
||
|
exports.ComponentInstruction = instruction_2.ComponentInstruction;
|
||
|
var core_1 = require('angular2/core');
|
||
|
exports.OpaqueToken = core_1.OpaqueToken;
|
||
|
var router_providers_common_1 = require('angular2/src/router/router_providers_common');
|
||
|
exports.ROUTER_PROVIDERS_COMMON = router_providers_common_1.ROUTER_PROVIDERS_COMMON;
|
||
|
var router_providers_1 = require('angular2/src/router/router_providers');
|
||
|
exports.ROUTER_PROVIDERS = router_providers_1.ROUTER_PROVIDERS;
|
||
|
exports.ROUTER_BINDINGS = router_providers_1.ROUTER_BINDINGS;
|
||
|
var router_outlet_2 = require('./src/router/directives/router_outlet');
|
||
|
var router_link_2 = require('./src/router/directives/router_link');
|
||
|
var lang_1 = require('./src/facade/lang');
|
||
|
/**
|
||
|
* A list of directives. To use the router directives like {@link RouterOutlet} and
|
||
|
* {@link RouterLink}, add this to your `directives` array in the {@link View} decorator of your
|
||
|
* component.
|
||
|
*
|
||
|
* ### Example ([live demo](http://plnkr.co/edit/iRUP8B5OUbxCWQ3AcIDm))
|
||
|
*
|
||
|
* ```
|
||
|
* import {Component} from 'angular2/core';
|
||
|
* import {ROUTER_DIRECTIVES, ROUTER_PROVIDERS, RouteConfig} from 'angular2/router';
|
||
|
*
|
||
|
* @Component({directives: [ROUTER_DIRECTIVES]})
|
||
|
* @RouteConfig([
|
||
|
* {...},
|
||
|
* ])
|
||
|
* class AppCmp {
|
||
|
* // ...
|
||
|
* }
|
||
|
*
|
||
|
* bootstrap(AppCmp, [ROUTER_PROVIDERS]);
|
||
|
* ```
|
||
|
*/
|
||
|
exports.ROUTER_DIRECTIVES = lang_1.CONST_EXPR([router_outlet_2.RouterOutlet, router_link_2.RouterLink]);
|
||
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91dGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNv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