From e917d57dbb81c2f7b009faeac53a5363523b714f Mon Sep 17 00:00:00 2001 From: Andrew Kushnir Date: Wed, 26 May 2021 12:34:01 -0700 Subject: [PATCH] docs: use `json` pipe in Forms guide instead of a temporary diagnostic field (#42364) Closes #37283. PR Close #42364 --- aio/content/examples/forms/src/app/app.module.ts | 2 ++ .../examples/forms/src/app/hero-form/hero-form.component.html | 2 +- .../examples/forms/src/app/hero-form/hero-form.component.ts | 2 -- aio/content/guide/forms.md | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/aio/content/examples/forms/src/app/app.module.ts b/aio/content/examples/forms/src/app/app.module.ts index f5482927a9..1a94fe3e31 100644 --- a/aio/content/examples/forms/src/app/app.module.ts +++ b/aio/content/examples/forms/src/app/app.module.ts @@ -1,6 +1,7 @@ // #docregion import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; +import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { AppComponent } from './app.component'; @@ -9,6 +10,7 @@ import { HeroFormComponent } from './hero-form/hero-form.component'; @NgModule({ imports: [ BrowserModule, + CommonModule, FormsModule ], declarations: [ diff --git a/aio/content/examples/forms/src/app/hero-form/hero-form.component.html b/aio/content/examples/forms/src/app/hero-form/hero-form.component.html index d05b100d9b..44bbb7c52c 100644 --- a/aio/content/examples/forms/src/app/hero-form/hero-form.component.html +++ b/aio/content/examples/forms/src/app/hero-form/hero-form.component.html @@ -147,7 +147,7 @@
- {{diagnostic}} + {{ model | json }}