【发布时间】:2017-05-04 09:24:10
【问题描述】:
我想根据ngModel 的值获取选定值下拉列表:
<div class="form-group">
<div>
<label class="dropdown" for="profile">Profile <span style="color:red">*</span></label>
</div>
<div class="half">
<select class="form-control" name='profile' [(ngModel)]='users.profile._id' required>
<option *ngFor="let obj of profiles" [value]="obj._id">{{obj.profile}}</option>
</select>
</div>
</div>
【问题讨论】: