代码:
<select ng-change="updateSearch()" ng-init="selectedUpcomingEvent = selectedUpcomingEvent || '1'" ng-model="selectedUpcomingEvent" >
<option value="1">Upcoming Events</option>
<option value="2">Past Events</option>
</select>
只需要将这两个选项转换成复选框即可。 ng-repeat 是个好主意还是有其他选择?
谢谢