angular : ng-options

基本调用,得到name 属性

<select ng-model="target" ng-options="obj.name as obj.name for obj in [{ name: 'a', id: 1 }, { name: 'b', id: 2 }]"></select>

 

posted @ 2015-10-23 11:52  泉油  阅读(112)  评论(0编辑  收藏  举报
Web Design Johor Bahru Malaysia - Stooges