docs: remove unused properties from forms overview example (#25663)

PR Close #25663
This commit is contained in:
Brandon Roberts 2018-09-25 11:52:07 -05:00 committed by Kara Erickson
parent eaccd03ed7
commit 354d1944bb
3 changed files with 2 additions and 5 deletions

View File

@ -14,7 +14,6 @@ import { TemplateModule } from './template/template.module';
ReactiveModule,
TemplateModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }

View File

@ -5,8 +5,7 @@ import { FormControl } from '@angular/forms';
selector: 'app-reactive-favorite-color',
template: `
Favorite Color: <input type="text" [formControl]="favoriteColorControl">
`,
styles: []
`
})
export class FavoriteColorComponent {
favoriteColorControl = new FormControl('');

View File

@ -4,8 +4,7 @@ import { Component } from '@angular/core';
selector: 'app-template-favorite-color',
template: `
Favorite Color: <input type="text" [(ngModel)]="favoriteColor">
`,
styles: []
`
})
export class FavoriteColorComponent {
favoriteColor = '';