title: Angular Create Dynamic year dropdown
body: <p>I want to create a year selection dropdown. year must start from this year upto next 7 years .</p>
  
  <p>I have tried</p>
  
  <pre><code>var year = new Date().getFullYear();
  var range = [];
  
  range.push(year);
  
  for (var i = 1; i &lt; 7; i++) {
      range.push(year + i);
  }
  
  $scope.years = range;
  
  &lt;select class="form-control"  ng-options="year for year in years" name="expiryMonth" ng-model="expiryMonth" required&gt;'
  </code></pre>
  
  <p>But this creates a html ,</p>
  
  <pre><code>&lt;option label="2016" value="number:2016"&gt;2016&lt;/option&gt;
  </code></pre>
  
  <p>this creates a required year dropdown
  But i want Value to be last two digits of label</p>
  
  <p>Also, my first option should be like </p>
  
  <pre><code>&lt;option value=""&gt;select month&lt;/option&gt;
  </code></pre>