Moved all heroes functionality into milestone 2 Crisis Center initial functionality is milestone 3 Admin feature module as milestone 4 including route guard examples Updated milestone 5 to lazy load admin feature module Added examples for CanLoad, CanActivateChildren guard, component-less routes Added section on explanation of ActivatedRoute Added section on animating route components Added section on relative navigation
29 lines
760 B
TypeScript
29 lines
760 B
TypeScript
// #docplaster
|
|
// #docregion
|
|
import { NgModule } from '@angular/core';
|
|
import { CommonModule } from '@angular/common';
|
|
|
|
import { AdminComponent } from './admin.component';
|
|
import { AdminDashboardComponent } from './admin-dashboard.component';
|
|
import { ManageCrisesComponent } from './manage-crises.component';
|
|
import { ManageHeroesComponent } from './manage-heroes.component';
|
|
|
|
import { adminRouting } from './admin.routing';
|
|
|
|
@NgModule({
|
|
imports: [
|
|
CommonModule,
|
|
adminRouting
|
|
],
|
|
declarations: [
|
|
AdminComponent,
|
|
AdminDashboardComponent,
|
|
ManageCrisesComponent,
|
|
ManageHeroesComponent
|
|
]
|
|
})
|
|
// #docregion admin-module-export
|
|
export class AdminModule {}
|
|
// #enddocregion admin-module-export
|
|
// #enddocregion
|