From d6550931230ee7af6169fe6142d9f99647565978 Mon Sep 17 00:00:00 2001 From: Kapunahele Wong Date: Mon, 11 Nov 2019 14:02:52 -0500 Subject: [PATCH] docs: add Animations import in Router doc (#33740) Fixes #33665 PR Close #33740 --- aio/content/examples/router/src/app/app.module.3.ts | 13 +++++++++++++ aio/content/guide/router.md | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/aio/content/examples/router/src/app/app.module.3.ts b/aio/content/examples/router/src/app/app.module.3.ts index 3277a6ded6..4393a1b935 100644 --- a/aio/content/examples/router/src/app/app.module.3.ts +++ b/aio/content/examples/router/src/app/app.module.3.ts @@ -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 /* diff --git a/aio/content/guide/router.md b/aio/content/guide/router.md index ad01c4e4ac..8acdd1391e 100644 --- a/aio/content/guide/router.md +++ b/aio/content/guide/router.md @@ -1590,7 +1590,7 @@ Remove the `HeroListComponent` from the `AppModule`'s `declarations` because it' After these steps, the `AppModule` should look like this: - +