JSFiddle - React, Tailwind, and code Playground

HTML

<div ng-app="">
    <div ng-controller="BreakCtrl">
        
        <ul>
            <li ng-repeat="bit in bits">{{bit}}</li>
        </ul>
        
    </div>
</div>

JavaScript

function BreakCtrl($scope){
    console.log('register controller');
    $scope.bits = [];
    var nums = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
    
    angular.forEach(nums, function(num){
      if(num > 5){
      }
      $scope.bits.push(num)
    });
}