JSFiddle - React, Tailwind, and code Playground
by manoj
HTML
<div ng-app ng-controller="myctrl">
<input type="text" ng-model="answer" />
</div>
JavaScript
function myctrl($scope) {
$scope.$watch('answer',function(oldVal,newVal){
console.log(oldVal,newVal);
});
}