File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
docs/_examples/cb-dynamic-form/ts/app
resources/images/cookbooks/dynamic-form Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
<!-- #docregion -->
2
2
< div [ngFormModel] ="form ">
3
- < div class =" formHeading "> {{question.label}}</ div >
3
+ < label [attr.for] =" question.key "> {{question.label}}</ label >
4
4
5
5
< div [ngSwitch] ="question.controlType ">
6
6
7
- < input *ngSwitchWhen ="'textbox' " [ngControl] ="question.key "
7
+ < input *ngSwitchWhen ="'textbox' " [ngControl] ="question.key "
8
8
[id] ="question.key " [type] ="question.type ">
9
9
10
- < select *ngSwitchWhen ="'dropdown' " [ngControl] ="question.key ">
10
+ < select [id] =" question.key " *ngSwitchWhen ="'dropdown' " [ngControl] ="question.key ">
11
11
< option *ngFor ="#opt of question.options " [value] ="opt.key "> {{opt.value}}</ option >
12
12
</ select >
13
13
You can’t perform that action at this time.
0 commit comments