Angular: ng-repeat scope - 14410993

http://angularjs.org/

HTML

<div ng-controller="MyCtrl">
   <select ng-model="selectedValue" ng-options="value as value for value in values_array | filter:skipValues(1)">
   </select>
</div>

JavaScript

var myApp = angular.module('myApp', []);

//myApp.directive('myDirective', function() {});
//myApp.factory('myService', function() {});

function MyCtrl($scope) {
		$scope.skipValues = function(anInt) {
    	return function(value, index, array) {
      	return $scope.skip_array.indexOf(value) === -1 && anInt > 0;
      }
    };
   	$scope.values_array = ['string1', 'string2', 'string3', 'string4'];
		$scope.skip_array = ['string2', 'string3'];
}