JSFiddle - React, Tailwind, and code Playground

by bigbearzhu

HTML

<div ng-app>
    <div ng-controller="Foo as ctrl">
        Items:
        <ul>
            <li ng-repeat="item in items() track by item.id">{{item.id}}</li>
        </ul>
    </div>
</div>

JavaScript

function Foo($scope){
    $scope.items = function() {
        return [
            { id: 1 }
        ];
    };
}