Simplified routing in tutorial example Updated ngmodule guide and ngmodule faq with routing module prose
		
			
				
	
	
		
			21 lines
		
	
	
		
			721 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			721 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { NgModule }            from '@angular/core';
 | |
| import { CommonModule }        from '@angular/common';
 | |
| import { FormsModule }         from '@angular/forms';
 | |
| 
 | |
| import { HeroComponent }       from './hero.component.3';
 | |
| import { HeroDetailComponent } from './hero-detail.component';
 | |
| import { HeroListComponent }   from './hero-list.component';
 | |
| import { HighlightDirective }  from './highlight.directive';
 | |
| import { HeroRoutingModule }   from './hero-routing.module.3';
 | |
| 
 | |
| // #docregion class
 | |
| @NgModule({
 | |
|   imports: [ CommonModule, FormsModule, HeroRoutingModule ],
 | |
|   declarations: [
 | |
|     HeroComponent, HeroDetailComponent, HeroListComponent,
 | |
|     HighlightDirective
 | |
|   ]
 | |
| })
 | |
| export class HeroModule { }
 | |
| // #enddocregion class
 |