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
		
			
				
	
	
		
			35 lines
		
	
	
		
			789 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			789 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
// #docplaster
 | 
						|
// #docregion
 | 
						|
import { NgModule }       from '@angular/core';
 | 
						|
import { BrowserModule }  from '@angular/platform-browser';
 | 
						|
import { FormsModule }    from '@angular/forms';
 | 
						|
 | 
						|
// #docregion router-basics
 | 
						|
import { AppComponent }         from './app.component';
 | 
						|
import { routing,
 | 
						|
         appRoutingProviders }  from './app.routing';
 | 
						|
 | 
						|
import { HeroListComponent }    from './hero-list.component';
 | 
						|
import { CrisisListComponent }  from './crisis-list.component';
 | 
						|
 | 
						|
@NgModule({
 | 
						|
  imports: [
 | 
						|
    BrowserModule,
 | 
						|
    FormsModule,
 | 
						|
    routing
 | 
						|
  ],
 | 
						|
  declarations: [
 | 
						|
    AppComponent,
 | 
						|
    HeroListComponent,
 | 
						|
    CrisisListComponent
 | 
						|
  ],
 | 
						|
  providers: [
 | 
						|
    appRoutingProviders
 | 
						|
  ],
 | 
						|
  bootstrap: [ AppComponent ]
 | 
						|
})
 | 
						|
// #enddocregion router-basics
 | 
						|
export class AppModule {
 | 
						|
}
 | 
						|
// #enddocregion
 |