This commit enables the above test to run under --define=compile=aot. To accomplish this, one import is rewritten from a strange form to the correct absolute form. FW-658 #resolve PR Close #27483
		
			
				
	
	
		
			45 lines
		
	
	
		
			836 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
		
			836 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| /**
 | |
|  * @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
 | |
|  */
 | |
| 
 | |
| import {Component, NgModule} from '@angular/core';
 | |
| import {RouterModule, Routes} from '@angular/router';
 | |
| 
 | |
| @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 {
 | |
| }
 |