JSFiddle - React, Tailwind, and code Playground

by ScottRippey

HTML

<div ng-app='app' ng-controller='c1'>
    <div>
        {{ name }}
        <ul>
             <li style="color: {{ c }}" ng-repeat='(key,value) in items' ng-click="c='red'">
                {{ key }}: {{ value }}
            </li>
        </ul>
    </div>
</div>

JavaScript

var ng = angular;
ng.module('app', []);

ng.module('app').controller('c1', function($scope, $timeout) {
    $scope.name = "Test repeater for {}";
    $scope.items = window.stuff = {};
    for (var x = 0; x < 30; x+=2) {
        $scope.items[x] = new Date().toTimeString();
    }
    window.$scope = $scope;
});