JSFiddle - React, Tailwind, and code Playground
by Sajeetharan Sinnathurai
HTML
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0-rc.3/angular.js"></script>
<body ng-app="WeeklyApp" ng-controller="WeeklyController" >
<div ng-repeat="data in myData">
{{data.address}} - {{data.email}}
<div ng-repeat="day in data.orders">
<b>orders:</b><br/>
<ul>
{{day.orderid}}
</ul>
</div>
</div>
</body>
JavaScript
var WeeklyApp = angular.module('WeeklyApp', []);
WeeklyApp.controller('WeeklyController', ['$scope', function ($scope) {
$scope.myData = [{
"address" : "2013-W45",
"email":"[email protected]",
"orders" : [{
"orderid" : "1",
"orderday" : "Monday"
}
]
},
{
"address" : "2013-W44",
"email":"[email protected]",
"orders" : [{
"orderid" : "2",
"orderday" : "Monday"
}
]
}
];
}]);