JSFiddle - React, Tailwind, and code Playground

by msfrisbie

HTML

<script src="https://code.angularjs.org/1.3.0/angular.min.js"></script>
<div ng-app="testapp" ng-controller="TestCtrl">
    <input ng-model="one" />
    <input ng-model="two" />
    <div ng-repeat="msg in msgs">{{ msg }}</div>
</div>

JavaScript

angular.module('testapp', [])
.controller('TestCtrl', function($scope) {
    $scope.msgs = [];
    $scope.$watchGroup(['one', 'two'], function() {
        $scope.msgs.push('changed '+$scope.msgs.length+'x');
    });
});