Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. <select ng-model="compareFull[$parent.$index][$index].first" ng-options="first.value as first.index for first in indexes | filter: filterList('value')"></select>
  2.  
  3. filter: filterList('value')
  4.  
  5. $scope.indexes = [
  6. {index:'$result', value:0},
  7. {index:'$result_etalon', value:1},
  8. {index:'$result_for_etalon', value:2},
  9. {index:'$hello', value:3},
  10. {index:'$hello_etalon', value:4},
  11. {index:'$hello_for_etalon', value:5},
  12. ];
  13.  
  14. $scope.filterList = function(prop){
  15. return function(item){
  16. if(item[prop]%3!=2){
  17. return item[prop];
  18. }
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement