title: Angular to display last 12 months dates
body: <p>I am trying to write  simple ng-repeat that displays a list of the last 12 months, from today.</p>
  
  <p>So for example, if i load my application today (May 2014), i will have a list of:</p>
  
  <pre><code>May 2014
  Apr 2014
  Mar 2014
  Feb 2014
  Jan 2014
  Dec 2013
  Nov 2013
  Oct 2013
  Sep 2013
  Aug 2013
  Jul 2013
  Jun 2013
  </code></pre>
  
  <p>If i was to view on say, September 2014, then the list would display as:</p>
  
  <pre><code>Sep 2014
  Aug 2014
  Jul 2014
  Jun 2014
  May 2014
  Apr 2014
  Mar 2014
  Feb 2014
  Jan 2014
  Dec 2013
  Nov 2013
  Oct 2013
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div ng-app=""&gt;
    &lt;div ng-controller="Ctrl"&gt;
      &lt;li ng-repeat="currMonth in months"&gt;{{currMonth}}&lt;/li&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>JS:</p>
  
  <pre><code>function Ctrl($scope) {
    $scope.months = [
        "01 - Jan",
        "02 - Feb",
        "03 - Mar",
        "04 - Apr",
        "05 - May",
        "06 - Jun",
        "07 - Jul",
        "08 - Aug",
        "09 - Sep",
        "10 - Oct",
        "11 - Nov",
        "12 - Dec"
      ];
      $scope.month = 'null';
  }
  </code></pre>