```
 <select class="form-control" id="column" ng-model="selectedcolumn" ng-options="column for column in columns"></select>    
 <input type="text" ng-model="test[selectedcolumn]" ng-change="search()" />

```

how to get this ng-model="test[selectedcolumn]" value ,something like this:

```
  $scope.filteredItems = $filter('filter')($scope.names, function (item) {
                        for (var attr in item) {

                            if (searchMatch(item[attr], $scope.test))
                                return true;
                        }
                        return false;
                    });

```