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
45 lines
1.1 KiB
TypeScript
45 lines
1.1 KiB
TypeScript
// #docplaster
|
|
// #docregion
|
|
// #docregion crisis-center-module, admin-module
|
|
import { NgModule } from '@angular/core';
|
|
import { CommonModule } from '@angular/common';
|
|
import { FormsModule } from '@angular/forms';
|
|
|
|
import { AppComponent } from './app.component';
|
|
import { routing,
|
|
appRoutingProviders } from './app.routing';
|
|
|
|
import { HeroesModule } from './heroes/heroes.module';
|
|
// #docregion crisis-center-module
|
|
import { CrisisCenterModule } from './crisis-center/crisis-center.module';
|
|
// #enddocregion crisis-center-module
|
|
// #docregion admin-module
|
|
import { AdminModule } from './admin/admin.module';
|
|
// #docregion crisis-center-module
|
|
|
|
import { DialogService } from './dialog.service';
|
|
|
|
@NgModule({
|
|
imports: [
|
|
CommonModule,
|
|
FormsModule,
|
|
routing,
|
|
HeroesModule,
|
|
CrisisCenterModule,
|
|
// #enddocregion crisis-center-module
|
|
AdminModule
|
|
// #docregion crisis-center-module
|
|
],
|
|
declarations: [
|
|
AppComponent
|
|
],
|
|
providers: [
|
|
appRoutingProviders,
|
|
DialogService
|
|
],
|
|
bootstrap: [ AppComponent ]
|
|
})
|
|
export class AppModule {
|
|
}
|
|
// #enddocregion
|