title: assign ng-model to ng-repeat (for dropdown selection)
body: <p>This is with reference to the jsfiddle attached herewith. 
  <a href="http://jsfiddle.net/n1cf938h/" rel="nofollow">http://jsfiddle.net/n1cf938h/</a></p>
  
  <p>As shown in the fiddle, ng-repeat produces a list of dates. I want to know which dropdown selection user has selected. How can i use ng-model in this case ? </p>
  
  <p>HTML-</p>
  
  <pre><code>&lt;div ng-app ng-controller="Ctrl"&gt;
      &lt;select&gt;
            &lt;option ng-repeat="date in dates"&gt;{{date | date:'MM-dd-yyyy'}}&lt;/option&gt;
      &lt;/select&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>JS code</p>
  
  <pre><code>function Ctrl($scope) {
  $scope.baseAdd = 0;
  $scope.dates = [0,1,2,3,4,5,6].map(function(day) {
  dateobj = new Date(new Date().getTime() + (1000 * 60 * 60 * 24 * (day + $scope.baseAdd)));
      while(dateobj.getDay() == 6 || dateobj.getDay() == 0) {
      $scope.baseAdd++
    dateobj = new Date(new Date().getTime() + (1000 * 60 * 60 * 24 * (day + $scope.baseAdd)));
  }
  return dateobj;
  });
  console.log($scope.dates)
  }
  </code></pre>