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
		
			
				
	
	
		
			34 lines
		
	
	
		
			778 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			778 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
// #docregion
 | 
						|
import { NgModule }       from '@angular/core';
 | 
						|
import { BrowserModule }  from '@angular/platform-browser';
 | 
						|
import { FormsModule }    from '@angular/forms';
 | 
						|
 | 
						|
import { AppComponent }        from './app.component';
 | 
						|
import { routing,
 | 
						|
         appRoutingProviders } from './app.routing';
 | 
						|
 | 
						|
import { HeroesModule }        from './heroes/heroes.module';
 | 
						|
import { CrisisCenterModule }  from './crisis-center/crisis-center.module';
 | 
						|
 | 
						|
import { DialogService }       from './dialog.service';
 | 
						|
 | 
						|
@NgModule({
 | 
						|
  imports: [
 | 
						|
    BrowserModule,
 | 
						|
    FormsModule,
 | 
						|
    routing,
 | 
						|
    HeroesModule,
 | 
						|
    CrisisCenterModule
 | 
						|
  ],
 | 
						|
  declarations: [
 | 
						|
    AppComponent
 | 
						|
  ],
 | 
						|
  providers: [
 | 
						|
    appRoutingProviders,
 | 
						|
    DialogService
 | 
						|
  ],
 | 
						|
  bootstrap: [ AppComponent ]
 | 
						|
})
 | 
						|
export class AppModule {
 | 
						|
}
 |