शून्य मान सेट करने के लिए, यहां नियंत्रक है -
function display($scope) { $scope.obj ={"selected":null}; $scope.objects = [{id: 1, value: "Yes"}, {id: 0, value: "No"}] }
निम्नलिखित टेम्प्लेट है -
<div ng-controller = "display"> <select ng-model = "obj.selected" ng-options = "value.id as value.value for value in objects"> <option value = "">Unknown</option> </select> <br/> {{obj}} </div>