This repository was archived by the owner on Dec 4, 2017. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +26
-17
lines changed
public/docs/_examples/reactive-forms/ts/app Expand file tree Collapse file tree 4 files changed +26
-17
lines changed Original file line number Diff line number Diff line change 11<!-- #docregion simple-control-->
22< h2 > Hero Detail</ h2 >
33< h3 > < i > Just a FormControl</ i > </ h3 >
4- < input class ="form-control " [formControl] ="name ">
4+ < label > Name:
5+ < input class ="form-control " [formControl] ="name ">
6+ </ label >
57<!-- #enddocregion simple-control-->
68
Original file line number Diff line number Diff line change @@ -3,8 +3,9 @@ <h2>Hero Detail</h2>
33< h3 > < i > FormControl in a FormGroup</ i > </ h3 >
44< form [formGroup] ="heroForm " novalidate >
55 < div class ="form-group ">
6- < label > Name:</ label >
7- < input class ="form-control " formControlName ="name ">
6+ < label > Name:
7+ < input class ="form-control " formControlName ="name ">
8+ </ label >
89 </ div >
910</ form >
1011<!-- #enddocregion basic-form-->
Original file line number Diff line number Diff line change @@ -3,8 +3,9 @@ <h2>Hero Detail</h2>
33< h3 > < i > A FormGroup with a single FormControl using FormBuilder</ i > </ h3 >
44< form [formGroup] ="heroForm " novalidate >
55 < div class ="form-group ">
6- < label > Name:</ label >
7- < input class ="form-control " formControlName ="name ">
6+ < label > Name:
7+ < input class ="form-control " formControlName ="name ">
8+ </ label >
89 </ div >
910</ form >
1011<!-- #enddocregion basic-form-->
Original file line number Diff line number Diff line change @@ -3,26 +3,31 @@ <h2>Hero Detail</h2>
33< h3 > < i > A FormGroup with multiple FormControls</ i > </ h3 >
44< form [formGroup] ="heroForm " novalidate >
55 < div class ="form-group ">
6- < label > Name:</ label >
7- < input class ="form-control " formControlName ="name ">
6+ < label > Name:
7+ < input class ="form-control " formControlName ="name ">
8+ </ label >
89 </ div >
910 < div class ="form-group ">
10- < label > Street:</ label >
11- < input class ="form-control " formControlName ="street ">
11+ < label > Street:
12+ < input class ="form-control " formControlName ="street ">
13+ </ label >
1214 </ div >
1315 < div class ="form-group ">
14- < label > City:</ label >
15- < input class ="form-control " formControlName ="city ">
16+ < label > City:
17+ < input class ="form-control " formControlName ="city ">
18+ </ label >
1619 </ div >
1720 < div class ="form-group ">
18- < label > State:</ label >
19- < select class ="form-control " formControlName ="state ">
20- < option *ngFor ="let state of states "> {{state}}</ option >
21- </ select >
21+ < label > State:
22+ < select class ="form-control " formControlName ="state ">
23+ < option *ngFor ="let state of states "> {{state}}</ option >
24+ </ select >
25+ </ label >
2226 </ div >
2327 < div class ="form-group ">
24- < label > Zip Code:</ label >
25- < input class ="form-control " formControlName ="zip ">
28+ < label > Zip Code:
29+ < input class ="form-control " formControlName ="zip ">
30+ </ label >
2631 </ div >
2732 < div class ="form-group ">
2833 < label > Super power:</ label >
You can’t perform that action at this time.
0 commit comments