Angular: Empty Fiddle

http://angularjs.org/

by Faisal Pathan

HTML

<h1>
Remove first empty option from dropdown
</h1>
<div ng-controller="MyCtrl">

    <select ng-model='form.type' required ng-options='option.value as option.name for option in typeOptions'></select>
</div>

JavaScript

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


function MyCtrl($scope) {
    
    $scope.typeOptions = [
    { name: 'Feature', value: 'feature' }, 
    { name: 'Bug', value: 'bug' }, 
    { name: 'Enhancement', value: 'enhancement' }
    ];
    
    $scope.form = {type : $scope.typeOptions[0].value};
}