title: Issues with $filter('limitTo') in angularjs
body: <p>Having issues with using the limitTo filter through javascript</p>
  
  <p>The <a href="https://docs.angularjs.org/api/ng/filter/limitTo" rel="nofollow">angularjs docs for limitTo</a> state that the filter is to be used in the following way:</p>
  
  <pre><code>$filter('limitTo')(input, limit, begin)
  </code></pre>
  
  <p>please note the begin parameter is optional.</p>
  
  <p>Following from the above I did the following:</p>
  
  <pre><code>var myApp = angular.module('myApp',[]);
  
  function MyCtrl($scope,$filter) {
     $scope.numbers =[1,2,4,1,8,11,345,123,908,223,4646,132,24,43,3,76,432,1];
     $filter('limitTo')($scope.numbers, 3);   
  }
  
  &lt;div ng-controller="MyCtrl"&gt;
   {{numbers}}
  &lt;/div&gt;
  </code></pre>
  
  <p>I expect my output to be </p>
  
  <pre><code>[1,2,4]
  </code></pre>
  
  <p>Yet the whole array was shown meaning the limitTo filter didn't work.</p>
  
  <p>What am I doing wrong?</p>
  
  <p><a href="http://jsfiddle.net/HB7LU/23827/" rel="nofollow">Link to jsfiddle</a></p>