JSFiddle - React, Tailwind, and code Playground

by huannd

HTML

<body ng-app="Ctrl">
  <div ng-controller="Ctrl">
   {{message}}
  </div>
</body>

JavaScript

angular.module('Ctrl', [])
  .controller('Ctrl', function($scope) {
  
   $scope.message = "Waiting 2000ms for update";
    
    setTimeout(function () {
         $scope.$apply(function () {
         		$scope.message = "Timeout called!"; })
        // AngularJS unaware of update to $scope
    }, 2000);
 })