Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 3393565

Browse files
add <label> up to hero detail 4
1 parent f549e30 commit 3393565

File tree

4 files changed

+26
-17
lines changed

4 files changed

+26
-17
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
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

public/docs/_examples/reactive-forms/ts/app/hero-detail-2.component.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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-->

public/docs/_examples/reactive-forms/ts/app/hero-detail-3.component.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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-->

public/docs/_examples/reactive-forms/ts/app/hero-detail-4.component.html

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)