JSFiddle - React, Tailwind, and code Playground

by James Allardice

HTML

<div ng-app="WatchDemo" ng-controller="WatchCtrl">
    <input type="text" ng-model="name">
</div>

JavaScript

angular
    .module("WatchDemo", [])
    .controller("WatchCtrl", [
        "$scope",
        function ($scope) {
            $scope.$watch("name", function () {
                console.log(arguments); 
            });
        }
    ])
;