# Why does angularjs include an empty option in select

I"ve been working with angular for the last few weeks and the one thing which is really bothering me is that even after trying all permutations or the configuration defined in the spec at http://docs.angularjs.org/api/ng.directive:select, I still get an empty option as the first child of select element.

$scope.typeOptions = [ { name: "Feature", value: "feature" }, { name: "Bug", value: "bug" }, { name: "Enhancement", value: "enhancement" } ]; Finally, here"s the HTML which gets generated <select ng-model="form.type" required="required" ng-options="option.value as option.name for option in typeOptions" class="span9 ng-pristine ng-invalid ng-invalid-required"> <option value="?" selected="selected"></option> <option value="0">Feature</option> <option value="1">Bug</option> <option value="2">Enhancement</option> </select> What do I need to do to get rid of it? P.S. Things work without this as well, but it just looks odd if you use select2 without multiple selection. The empty option is generated when a value referenced by ng-model doesn't exist in a set of options passed to ng-options. This happens to prevent accidental model selection: AngularJS can see that the initial model is either undefined or not in the set of options and don't want to decide model value on its own. If you want to get rid of the empty option just select an initial value in your controller, something like:$scope.form.type = \$scope.typeOptions[0].value;