JSFiddle - React, Tailwind, and code Playground

by aaronfrost

HTML

<div ng-app="">
    
    <div ng-controller="TestCtrl">
        
        <input type="text" ng-model="foo"/>
        <ul>
            <li ng-bind="cur"></li>
            <li ng-bind="prev"></li>
        </ul>
        
    </div>
    
</div>

JavaScript

function TestCtrl($scope){
    
    $scope.$watch('foo',function(cur, prev, scope){
        $scope.cur = cur;
        $scope.prev = prev;
    });
    
}