ng-repeat和ng-options区别

ng-repeat ="x in XXX"
ng-options="x.*** for x in XXX“
ng-repeat 写法
<select>
<option ng-repeat ="x in XXX"></option>
</select>
ng-options写法 必须要加ng-model
<select ng-model="xxxx" ng-options="y.xxx for y in XXX">
</select>
posted @ 2019-08-01 16:27  一条有梦想的海洋咸鱼  阅读(407)  评论(0编辑  收藏  举报