File tree Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change 33
33
< p >
34
34
< label for ="drinks-theme "> Theme:</ label >
35
35
< select [(ngModel)] ="drinksTheme " id ="drinks-theme ">
36
- < option *ngFor ="let theme of availableThemes " [value] ="theme.value "> {{ theme.name }}</ option >
36
+ < option *ngFor ="let theme of availableThemes " [value] ="theme.value ">
37
+ {{theme.name}}
38
+ </ option >
37
39
</ select >
38
40
</ p >
39
41
111
113
< md-card >
112
114
< md-card-subtitle > compareWith</ md-card-subtitle >
113
115
< md-card-content >
114
- < md-select placeholder ="Drink " [color] ="drinksTheme "
115
- [(ngModel)] ="currentDrinkObject "
116
- [required] ="drinkObjectRequired "
117
- [compareWith] ="compareByValue ? compareDrinkObjectsByValue : compareByReference "
118
- #drinkObjectControl ="ngModel ">
119
- < md-option *ngFor ="let drink of drinks " [value] ="drink " [disabled] ="drink.disabled ">
120
- {{ drink.viewValue }}
121
- </ md-option >
122
- </ md-select >
116
+ < md-form-field [color] ="drinksTheme ">
117
+ < md-select placeholder ="Drink "
118
+ [(ngModel)] ="currentDrinkObject "
119
+ [required] ="drinkObjectRequired "
120
+ [compareWith] ="compareByValue ? compareDrinkObjectsByValue : compareByReference "
121
+ #drinkObjectControl ="ngModel ">
122
+ < md-option *ngFor ="let drink of drinks " [value] ="drink " [disabled] ="drink.disabled ">
123
+ {{ drink.viewValue }}
124
+ </ md-option >
125
+ </ md-select >
126
+ </ md-form-field >
123
127
< p > Value: {{ currentDrinkObject | json }} </ p >
124
128
< p > Touched: {{ drinkObjectControl.touched }} </ p >
125
129
< p > Dirty: {{ drinkObjectControl.dirty }} </ p >
You can’t perform that action at this time.
0 commit comments