JSFiddle - React, Tailwind, and code Playground

by awolf2904

HTML

<div ng-app="demoApp" ng-controller="mainController as ctrl">
    {{$id}}
    <ul>
    <li ng-repeat="item in ctrl.items">
        {{$id}}<br/>
        {{item.text}}
    </li>
    </ul>
    {{$id}}
    <pre>
{{ctrl.items | json : 2}}
    </pre>
</div>

JavaScript

angular.module('demoApp', [])
	.controller('mainController', MainController);
    
function MainController() {
	var vm = this;
    vm.items = [{
    	id: 0,
        text: 'first'
    },
    {
    	id: 1,
        text: 'second'
    },{
    	id: 2,
        text: 'third'
    }];
}