title: How to set default value in drop down using ng-options?
body: <p>Am using a drop down box in my form which lists items.</p>
  
  <p>this is html code :</p>
  
  <pre><code>&lt;tr&gt;
    &lt;td&gt;&lt;label&gt;items&lt;/label&gt;&lt;/td&gt;
    &lt;td&gt;
      &lt;select ng-model="addItems.item" ng-options="item.name for item in itemList" ng-init="getItemsList()"&gt;                       
      &lt;/select&gt;
    &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>this is my controller:</p>
  
  <pre><code>$scope.getItemsList = function() {
      $http({
          method : "GET" ,
          url : "/items/allitems"
      }).success(function(data) {
          $scope.itemList = data;                              
          $scope.additems.item = $scope.itemList[0].id;
      });
  };
  </code></pre>
  
  <p>Problem is :Am getting item's list from controller and binded those through ng-model. But i list item's name in drop down and if i select any then particular item's id will be sent to database for storing.</p>
  
  <p>If i run this code i got the below result in browser :</p>
  
  <pre><code>&lt;option value="?" selected="selected"&gt;&lt;/option&gt;
  &lt;option value="0"&gt;pen&lt;/option&gt;
  &lt;option value="1"&gt;notebook&lt;/option&gt;
  &lt;option value="2"&gt;marker&lt;/option&gt;
  </code></pre>
  
  <p>Can anyone please tel me whether i did any mistake and give me a tips to have 1st value as default one instead of empty selection</p>