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

Commit dc00a9f

Browse files
thelgevoldwardbell
authored andcommitted
docs(cb-dynamic-form): Converted divs to labels in form
1 parent 7a6833a commit dc00a9f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

public/docs/_examples/cb-dynamic-form/ts/app/dynamic-form-question.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<!-- #docregion -->
22
<div [ngFormModel]="form">
3-
<div class="formHeading">{{question.label}}</div>
3+
<label [attr.for]="question.key">{{question.label}}</label>
44

55
<div [ngSwitch]="question.controlType">
66

7-
<input *ngSwitchWhen="'textbox'" [ngControl]="question.key"
7+
<input *ngSwitchWhen="'textbox'" [ngControl]="question.key"
88
[id]="question.key" [type]="question.type">
99

10-
<select *ngSwitchWhen="'dropdown'" [ngControl]="question.key">
10+
<select [id]="question.key" *ngSwitchWhen="'dropdown'" [ngControl]="question.key">
1111
<option *ngFor="#opt of question.options" [value]="opt.key">{{opt.value}}</option>
1212
</select>
1313

Loading

0 commit comments

Comments
 (0)