我想在项目中访问期间作为选择标记中的选项。
angular js模块和列表
<android.support.v7.widget.RecyclerView
android:id="@+id/recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/seperator"
android:columnWidth="100dp"
android:padding="10dp"/>
选择标记的HTML代码
var dynamicApp = angular.module('dynamicApp', []);
dynamicApp.controller('maincontroller', function($scope) {
$scope.invoice = {
items: [{
loyality: [{name:'points'},{name:'credits'}],
value:1,
period: [{name:'activity1'},{name:'activity2'}]
}]
};
$scope.removeItem = function(index) {
$scope.list.splice(index, 1);
}
});
答案 0 :(得分:1)
答案 1 :(得分:0)
<td>
<select ng-model=" pts" ng-options="lists for lists in invoice.items.period " ></select>
</td>