JSFiddle - React, Tailwind, and code Playground

HTML

<h3 >Update Repeater Count</h3>
<div ng-app ng-controller="Controller">
<input type="text" id="gcols" placeholder="Number of Columns" ng-model="cols"/>

<div ng-repeat="div in divs | limitTo:cols" >
    <hr/>{{div}}
 </div>
    
</div>

JavaScript

function Controller($scope) {
    $scope.cols=4;
    $scope.divs =["test1","test2","test3","test4","test5","test6","test7","test8","test9","test10","test11","test12"];

}