JSFiddle - React, Tailwind, and code Playground
by techgeeek
HTML
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.2/angular.min.js"></script>
<script>
function fieldChange()
{
document.getElementById('textField').value='aaa';
angular.element(document.getElementById('textField')).triggerHandler('change');
}
angular.module("myApp", []).controller('myCtrl', function($scope) {
$scope.fieldValue = 'xxx';
});
</script>
<body ng-app="myApp" ng-controller="myCtrl">
<input type="text" id="textField" ng-model="fieldValue">
<button onclick="fieldChange();"> Change </button>
{{ fieldValue }}
</body>