Angular:将选项下拉列表转换为复选框下拉列表?

时间:2021-07-17 01:02:00

标签: angularjs

代码:

<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 是个好主意还是有其他选择?

谢谢

0 个答案:

没有答案