docs: remove unused properties from forms overview example (#25663)
PR Close #25663
This commit is contained in:
parent
eaccd03ed7
commit
354d1944bb
|
@ -14,7 +14,6 @@ import { TemplateModule } from './template/template.module';
|
|||
ReactiveModule,
|
||||
TemplateModule
|
||||
],
|
||||
providers: [],
|
||||
bootstrap: [AppComponent]
|
||||
})
|
||||
export class AppModule { }
|
||||
|
|
|
@ -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('');
|
||||
|
|
|
@ -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 = '';
|
||||
|
|
Loading…
Reference in New Issue