JSFiddle - React, Tailwind, and code Playground

HTML

<div ng-app="app" ng-controller="Controller">
    <textarea ng-model="textValue"></textarea>
</div>

JavaScript

var module = angular.module("app",[]);

module.controller("Controller", function ($scope) {
   $scope.textValue = "Test"; 
    
    window.setInterval(function () {
        $scope.textValue = $scope.textValue === "Test" ? "Hello World" : "Test";
        $scope.$apply();
    },2000);
});

document.querySelector("textarea").addEventListener("change", function () {
   alert("changed");
    
});