docs: add Animations import in Router doc (#33740)
Fixes #33665 PR Close #33740
This commit is contained in:
		
							parent
							
								
									953365d090
								
							
						
					
					
						commit
						d655093123
					
				| @ -1,8 +1,13 @@ | ||||
| // #docplaster
 | ||||
| // #docregion
 | ||||
| // #docregion remove-heroes
 | ||||
| import { NgModule }       from '@angular/core'; | ||||
| import { BrowserModule }  from '@angular/platform-browser'; | ||||
| import { FormsModule }    from '@angular/forms'; | ||||
| // #enddocregion remove-heroes
 | ||||
| import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; | ||||
| 
 | ||||
| // #docregion remove-heroes
 | ||||
| import { AppComponent }     from './app.component'; | ||||
| import { AppRoutingModule } from './app-routing.module'; | ||||
| import { HeroesModule }     from './heroes/heroes.module'; | ||||
| @ -14,6 +19,13 @@ import { PageNotFoundComponent } from './page-not-found/page-not-found.component | ||||
| // #docregion module-imports
 | ||||
|   imports: [ | ||||
|     BrowserModule, | ||||
| // #enddocregion module-imports
 | ||||
| // #enddocregion remove-heroes
 | ||||
| // #docregion animation-import
 | ||||
|     BrowserAnimationsModule, | ||||
| // #enddocregion animation-import
 | ||||
| // #docregion remove-heroes
 | ||||
| // #docregion module-imports
 | ||||
|     FormsModule, | ||||
|     HeroesModule, | ||||
|     AppRoutingModule | ||||
| @ -27,6 +39,7 @@ import { PageNotFoundComponent } from './page-not-found/page-not-found.component | ||||
|   bootstrap: [ AppComponent ] | ||||
| }) | ||||
| export class AppModule { } | ||||
| // #enddocregion remove-heroes
 | ||||
| // #enddocregion
 | ||||
| 
 | ||||
| /* | ||||
|  | ||||
| @ -1590,7 +1590,7 @@ Remove the `HeroListComponent` from the `AppModule`'s `declarations` because it' | ||||
| After these steps, the `AppModule` should look like this: | ||||
| 
 | ||||
| 
 | ||||
| <code-example path="router/src/app/app.module.3.ts" header="src/app/app.module.ts"></code-example> | ||||
| <code-example path="router/src/app/app.module.3.ts" header="src/app/app.module.ts" region="remove-heroes"></code-example> | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user