docs: add Animations import in Router doc (#33740)

Fixes #33665

PR Close #33740
This commit is contained in:
Kapunahele Wong 2019-11-11 14:02:52 -05:00 committed by Matias Niemelä
parent 953365d090
commit d655093123
2 changed files with 14 additions and 1 deletions

View File

@ -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
/*

View File

@ -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>