JSFiddle - React, Tailwind, and code Playground

HTML

<div ng-app ng-controller="MyCtrl">
    <div ng-repeat="item in [1]">
        <div ng-repeat="item in [1]">
            Type something: <input type="text" ng-model="txt" />
        </div>
    </div>
    <div ng-repeat="item in get_items()">
        <p>{{item}}</p>
        <p>{{getSeconds()}}</p>
    </div>
</div>

JavaScript

function MyCtrl($scope) {
    $scope.get_items = function() {
        var seconds = new Date().getSeconds();
        console.log(seconds);
        return [1];
    }
        
    $scope.getSeconds = function() {
        return new Date().getSeconds();
    }
}