code: function () {
                  var options = $scope.options || [];
                  $scope.filteredOptions.splice(0);
                  if (!$scope.scopeBuster.filter) {
                      angular.copy(options, $scope.filteredOptions);
                  }
                  else {
                      var filter = sanitize($scope.scopeBuster.filter);
                      angular.forEach(options, function (option) {
                          var index = sanitize(option[$scope.labelAttribute]).indexOf(filter);
                          if (index >= 0) {
                              $scope.filteredOptions.push(option);
                          }
                      });
                  }
              }
docs: Updates visible <option>s based on current filter text