JSFiddle - React, Tailwind, and code Playground

HTML

<div ng-app ng-controller="ApplicationController">   
    <pre>Number: {{ number }}</pre>
    <button ng-click="testTimer()">Test Timer</button>
</div>

JavaScript

function ApplicationController($scope,$interval) {
    
    $scope.number = 99999;
  
    $scope.testTimer = function() {
        $interval(function() {
            $scope.number--;
        }, 100);
    };  
}