docs: remove unused properties from forms overview example (#25663)
PR Close #25663
This commit is contained in:
parent
e55127906a
commit
2f1aec4744
@ -14,7 +14,6 @@ import { TemplateModule } from './template/template.module';
|
|||||||
ReactiveModule,
|
ReactiveModule,
|
||||||
TemplateModule
|
TemplateModule
|
||||||
],
|
],
|
||||||
providers: [],
|
|
||||||
bootstrap: [AppComponent]
|
bootstrap: [AppComponent]
|
||||||
})
|
})
|
||||||
export class AppModule { }
|
export class AppModule { }
|
||||||
|
@ -5,8 +5,7 @@ import { FormControl } from '@angular/forms';
|
|||||||
selector: 'app-reactive-favorite-color',
|
selector: 'app-reactive-favorite-color',
|
||||||
template: `
|
template: `
|
||||||
Favorite Color: <input type="text" [formControl]="favoriteColorControl">
|
Favorite Color: <input type="text" [formControl]="favoriteColorControl">
|
||||||
`,
|
`
|
||||||
styles: []
|
|
||||||
})
|
})
|
||||||
export class FavoriteColorComponent {
|
export class FavoriteColorComponent {
|
||||||
favoriteColorControl = new FormControl('');
|
favoriteColorControl = new FormControl('');
|
||||||
|
@ -4,8 +4,7 @@ import { Component } from '@angular/core';
|
|||||||
selector: 'app-template-favorite-color',
|
selector: 'app-template-favorite-color',
|
||||||
template: `
|
template: `
|
||||||
Favorite Color: <input type="text" [(ngModel)]="favoriteColor">
|
Favorite Color: <input type="text" [(ngModel)]="favoriteColor">
|
||||||
`,
|
`
|
||||||
styles: []
|
|
||||||
})
|
})
|
||||||
export class FavoriteColorComponent {
|
export class FavoriteColorComponent {
|
||||||
favoriteColor = '';
|
favoriteColor = '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user