| 
									
										
										
										
											2018-07-27 15:47:12 +01:00
										 |  |  | /** | 
					
						
							|  |  |  |  * @license | 
					
						
							| 
									
										
										
										
											2020-05-19 12:08:49 -07:00
										 |  |  |  * Copyright Google LLC All Rights Reserved. | 
					
						
							| 
									
										
										
										
											2018-07-27 15:47:12 +01:00
										 |  |  |  * | 
					
						
							|  |  |  |  * 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
 | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import {Component, NgModule} from '@angular/core'; | 
					
						
							| 
									
										
										
										
											2018-12-05 10:07:52 -08:00
										 |  |  | import {RouterModule, Routes} from '@angular/router'; | 
					
						
							| 
									
										
										
										
											2018-07-27 15:47:12 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | @Component({ | 
					
						
							|  |  |  |   selector: 'aot-router', | 
					
						
							|  |  |  |   template: '<router-outlet></router-outlet>', | 
					
						
							|  |  |  | }) | 
					
						
							|  |  |  | export class AotRouterCmp { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @Component({ | 
					
						
							|  |  |  |   selector: 'aot-router-child', | 
					
						
							|  |  |  |   template: 'arc', | 
					
						
							|  |  |  | }) | 
					
						
							|  |  |  | export class AotRouterChildCmp { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export const ROUTES: Routes = [ | 
					
						
							|  |  |  |   {path: '', component: AotRouterChildCmp}, | 
					
						
							|  |  |  | ]; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @NgModule({ | 
					
						
							|  |  |  |   declarations: [ | 
					
						
							|  |  |  |     AotRouterCmp, | 
					
						
							|  |  |  |     AotRouterChildCmp, | 
					
						
							|  |  |  |   ], | 
					
						
							|  |  |  |   exports: [ | 
					
						
							|  |  |  |     AotRouterCmp, | 
					
						
							|  |  |  |     AotRouterChildCmp, | 
					
						
							|  |  |  |   ], | 
					
						
							|  |  |  |   imports: [ | 
					
						
							|  |  |  |     RouterModule.forRoot(ROUTES), | 
					
						
							|  |  |  |   ], | 
					
						
							|  |  |  | }) | 
					
						
							|  |  |  | export class AotRouterModule { | 
					
						
							|  |  |  | } |