<!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Example - example-example55-jquery</title>
  

  <script src="../../components/jquery-1.10.2/jquery.js"></script>
  <script src="../../../angular.js"></script>
  

  
</head>
<body ng-app="limitToExample">
    <script>
    angular.module('limitToExample', [])
      .controller('ExampleController', ['$scope', function($scope) {
        $scope.numbers = [1,2,3,4,5,6,7,8,9];
        $scope.letters = "abcdefghi";
        $scope.numLimit = 3;
        $scope.letterLimit = 3;
      }]);
  </script>
  <div ng-controller="ExampleController">
    Limit {{numbers}} to: <input type="integer" ng-model="numLimit">
    <p>Output numbers: {{ numbers | limitTo:numLimit }}</p>
    Limit {{letters}} to: <input type="integer" ng-model="letterLimit">
    <p>Output letters: {{ letters | limitTo:letterLimit }}</p>
  </div>
</body>
</html>