JSFiddle - React, Tailwind, and code Playground

by rur_d

HTML

<script src="http://code.angularjs.org/angular-1.0.0rc8.js"></script>
<div ng-app>
    <div ng-controller="TestCtrl">
        <label for="value1">Value 1</label><input type="text" name="value1" value="" id="value1" ng-model="value1">
        <label for="value2">Value 2</label><input type="text" name="value2" value="" id="value2" ng-model="value2">
        <p>Computed = {{value1 + " ~ " + value2}}</p>
    </div>
</div>

<script type="text/javascript" charset="utf-8">
    function TestCtrl ($scope, $log) {
        $scope.$watch('value1 + " ~ " + value2', function(newval, oldval){
            $log.log(arguments);
        })
        
    }
</script>