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

  <script src="../../../angular.min.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="number" step="1" ng-model="numLimit">
    <p>Output numbers: {{ numbers | limitTo:numLimit }}</p>
    Limit {{letters}} to: <input type="number" step="1" ng-model="letterLimit">
    <p>Output letters: {{ letters | limitTo:letterLimit }}</p>
  </div>
</body>
</html>