Skip to content

Commit c30052f

Browse files
committed
WTF? - ul works, select does not!
1 parent d6c5e70 commit c30052f

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<cloudlaunch-config>
2+
3+
4+
<div class="form-group">
5+
<ul>
6+
<li *ngFor="#cloud of clouds">{{ cloud.name }}, {{ cloud.slug }}</li>
7+
</ul>
8+
--
9+
<select>
10+
<option *ngFor="#cloud of clouds" [value]="cloud.slug">
11+
{{ cloud.name }}
12+
</option>
13+
</select>
14+
15+
</div>
16+
17+
<div class="error" *ngIf="errorMessage">{{errorMessage}}</div>
18+
</cloudlaunch-config>

app/components/cloudlaunch.component.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,16 @@ import { CloudService } from '../services/cloud.service';
1212
})
1313

1414
export class CloudLaunchComponent implements OnInit {
15-
clouds: Cloud[] = [];
1615
errorMessage: string;
1716
showAdvanced: boolean = false;
1817

18+
selectedCloud: Cloud;
19+
clouds: Cloud[] = [];
20+
// clouds: Cloud[] = [
21+
// { name: 'cl1', slug: 'c1s' },
22+
// { name: 'cl2', slug: 'c2s' },
23+
// ]
24+
1925
// launchForm: ControlGroup;
2026
constructor(private _cloudService: CloudService, fb: FormBuilder) {
2127
// this.launchForm = fb.group({

0 commit comments

Comments
 (0)