Check out the following code snippet:
HTML:
<div ng-controller="MyCtrl">
<select ng-model='selectedNumber' ng-change="adv(selectedNumber);" ng-options='number for number in numbers'></select>
num: {{selectedNumber}}
<select ng-model='selected' ng-options="number for number in num"></select>
num: {{selected}}
<button ng-click="add()" >add</button>
</div>
JavaScript:
var myApp = angular.module('myApp',[]);
function MyCtrl($scope) {
$scope.numbers = [1,2,3,4,5,6,7,8,9,10];
$scope.num = angular.copy($scope.numbers);
$scope.selectedNumber = $scope.numbers[0];
//$scope.selected = $scope.num[0];
$scope.add=function(){
$scope.num = angular.copy($scope.numbers);
}
$scope.adv = function(selectedNumber){
$scope.num = angular.copy($scope.numbers);
// $scope.selected = $scope.numbers[selectedNumber];
var a = $scope.num.splice(selectedNumber-1, 1);
}
$scope.num = angular.copy($scope.numbers);
}
I hope this is the code you were looking for.