Alex Rickabaugh f514ac3da2 test(ivy): enable //packages/router/test/aot_ngsummary_test in Ivy mode (#27483)
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
2018-12-05 16:26:39 -08:00

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 {
}