| 
									
										
										
										
											2016-06-23 09:47:54 -07:00
										 |  |  | /** | 
					
						
							|  |  |  |  * @license | 
					
						
							|  |  |  |  * Copyright Google Inc. All Rights Reserved. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Use of this source code is governed by an MIT-style license that can be | 
					
						
							|  |  |  |  * found in the LICENSE file at https://angular.io/license
 | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-04-17 09:59:56 -07:00
										 |  |  | /** | 
					
						
							|  |  |  |  * @module | 
					
						
							|  |  |  |  * @description | 
					
						
							|  |  |  |  * Maps application URLs into application states, to support deep-linking and navigation. | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-04-28 17:50:03 -07:00
										 |  |  | export {RouterLink} from './src/directives/router_link'; | 
					
						
							| 
									
										
										
										
											2016-06-08 16:38:52 -07:00
										 |  |  | export {RouterOutlet} from './src/directives/router_outlet'; | 
					
						
							|  |  |  | export {RouteData, RouteParams} from './src/instruction'; | 
					
						
							|  |  |  | export {ROUTER_PRIMARY_COMPONENT, RouteRegistry} from './src/route_registry'; | 
					
						
							|  |  |  | export {RootRouter, Router} from './src/router'; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-04-28 17:50:03 -07:00
										 |  |  | export * from './src/route_config/route_config_decorator'; | 
					
						
							|  |  |  | export * from './src/route_definition'; | 
					
						
							|  |  |  | export {OnActivate, OnDeactivate, OnReuse, CanDeactivate, CanReuse} from './src/interfaces'; | 
					
						
							|  |  |  | export {CanActivate} from './src/lifecycle/lifecycle_annotations'; | 
					
						
							|  |  |  | export {Instruction, ComponentInstruction} from './src/instruction'; | 
					
						
							|  |  |  | export {OpaqueToken} from '@angular/core'; | 
					
						
							|  |  |  | export {ROUTER_PROVIDERS_COMMON} from './src/router_providers_common'; | 
					
						
							|  |  |  | export {ROUTER_PROVIDERS, ROUTER_BINDINGS} from './src/router_providers'; | 
					
						
							| 
									
										
										
										
											2015-05-01 05:53:58 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-04-28 17:50:03 -07:00
										 |  |  | import {RouterOutlet} from './src/directives/router_outlet'; | 
					
						
							|  |  |  | import {RouterLink} from './src/directives/router_link'; | 
					
						
							| 
									
										
										
										
											2015-10-09 16:22:07 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-09-03 16:17:23 -07:00
										 |  |  | /** | 
					
						
							| 
									
										
										
										
											2015-09-21 17:17:25 -07:00
										 |  |  |  * A list of directives. To use the router directives like {@link RouterOutlet} and | 
					
						
							| 
									
										
										
										
											2016-07-07 23:02:35 -07:00
										 |  |  |  * {@link RouterLink}, add this to your `directives` array in the {@link Component} decorator | 
					
						
							|  |  |  |  * of your component. | 
					
						
							| 
									
										
										
										
											2015-09-03 16:17:23 -07:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2015-10-19 15:37:32 +01:00
										 |  |  |  * ### Example ([live demo](http://plnkr.co/edit/iRUP8B5OUbxCWQ3AcIDm))
 | 
					
						
							| 
									
										
										
										
											2015-09-21 17:17:25 -07:00
										 |  |  |  * | 
					
						
							|  |  |  |  * ```
 | 
					
						
							| 
									
										
										
										
											2016-04-28 17:50:03 -07:00
										 |  |  |  * import {Component} from '@angular/core'; | 
					
						
							| 
									
										
										
										
											2016-05-02 10:36:58 -07:00
										 |  |  |  * import {ROUTER_DIRECTIVES, ROUTER_PROVIDERS, RouteConfig} from '@angular/router-deprecated'; | 
					
						
							| 
									
										
										
										
											2015-09-03 16:17:23 -07:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2015-10-11 07:41:19 -07:00
										 |  |  |  * @Component({directives: [ROUTER_DIRECTIVES]}) | 
					
						
							| 
									
										
										
										
											2015-09-03 16:17:23 -07:00
										 |  |  |  * @RouteConfig([ | 
					
						
							| 
									
										
										
										
											2015-09-21 17:17:25 -07:00
										 |  |  |  *  {...}, | 
					
						
							| 
									
										
										
										
											2015-09-03 16:17:23 -07:00
										 |  |  |  * ]) | 
					
						
							|  |  |  |  * class AppCmp { | 
					
						
							|  |  |  |  *    // ...
 | 
					
						
							|  |  |  |  * } | 
					
						
							|  |  |  |  * | 
					
						
							| 
									
										
										
										
											2015-10-10 22:11:13 -07:00
										 |  |  |  * bootstrap(AppCmp, [ROUTER_PROVIDERS]); | 
					
						
							| 
									
										
										
										
											2015-09-03 16:17:23 -07:00
										 |  |  |  * ```
 | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2016-07-30 19:18:14 -07:00
										 |  |  | export const ROUTER_DIRECTIVES: any[] = [RouterOutlet, RouterLink]; |