http://jsfiddle.net/RK6P9/200/
<select ng-model="item.ProcessId"
ng-options="c.ProcessId as c.ProcessName for c in columns"></select>
{{item.ProcessId}}
<select ng-model="item.refprocessId"
ng-options="c.ProcessId as c.ProcessName for c in columns | filter:{ProcessId: '!'+item.ProcessId }"></select>
$scope.columns = [
{"ProcessId":173,"ProcessName":"Paperwork","PlanTypeId":3},{"ProcessId":270,"ProcessName":"Test Update Process 14/8/2015","PlanTypeId":1},{"ProcessId":174,"ProcessName":"Floor","PlanTypeId":1},{"ProcessId":175,"ProcessName":"Wall","PlanTypeId":1},{"ProcessId":176,"ProcessName":"Roof","PlanTypeId":1},{"ProcessId":240,"ProcessName":"Prepare project","PlanTypeId":3},{"ProcessId":142,"ProcessName":"Base","PlanTypeId":1},{"ProcessId":143,"ProcessName":"Foundation","PlanTypeId":1},{"ProcessId":144,"ProcessName":"Floor","PlanTypeId":1}
];
ไม่มีความคิดเห็น:
แสดงความคิดเห็น