JSFiddle - React, Tailwind, and code Playground
by Do Thu Nguyen
HTML
<div ng-app='app' ng-controller='default' ng-init='init()'>
<div ng-repeat='day in days'>
<strong>{{day}}</strong><br/>
<span ng-repeat="item in arr[day]">{{item}} </span>
</div>
</div>
JavaScript
angular.module('app',[]).controller('default', function($scope) {
$scope.init = function() {
$scope.days = ["mon", "tue", "wed", "sun"];
$scope.arr = [];
$scope.arr["mon"] = ["apple","orange"];
$scope.arr["tue"] = ["blue","swish"];
$scope.arr["sun"] = ["pineapple","myfruit","carrot"];
}
})