parent
							
								
									101d2ef091
								
							
						
					
					
						commit
						3baea41801
					
				| @ -227,7 +227,7 @@ block router-config-intro | ||||
|     We'll export a `routing` constant initialized using the `RouterModule.forRoot` method applied to our !{_array} of routes. | ||||
|     This method returns a **configured router module** that we'll add to our root NgModule, `AppModule`. | ||||
| 
 | ||||
|   +makeExcerpt('app/app.routing.ts (excerpt)', 'routing') | ||||
|   +makeExcerpt('app/app.routing.1.ts (excerpt)', 'routing-export') | ||||
| 
 | ||||
|   .l-sub-section | ||||
|     :marked | ||||
| @ -479,16 +479,11 @@ code-example(format=''). | ||||
|   The colon (:) in the path indicates that `:id` is a placeholder to be filled with a specific hero `id` | ||||
|   when navigating to the `HeroDetailComponent`. | ||||
| 
 | ||||
| .l-sub-section | ||||
| +ifDocsFor('dart') | ||||
|   .l-sub-section | ||||
|     :marked | ||||
|       Remember to import the hero detail component before creating this route. | ||||
| 
 | ||||
| +ifDocsFor('ts|js') | ||||
|   :marked | ||||
|     Add the `HeroDetailComponent` to our root NgModule's `declarations`. | ||||
| 
 | ||||
|   +makeExcerpt('app/app.module.ts', 'hero-detail') | ||||
| 
 | ||||
| :marked | ||||
|   We're finished with the application routes. | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user