JSFiddle - React, Tailwind, and code Playground

by prashusuri

HTML

<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.4/angular.min.js"></script>
<html ng-app="MyApp" >
 
    <body ng-controller="MyCtrl">
<div ng-repeat="sampledata in data"> {{ sampledata.name }}
    <div ng-repeat="getdata in sampledata.data">
        {{ getdata.num1 }}
    </div>
</div>
    </body>
</html>

JavaScript

function myctrl ($scope) {


}


var mod = angular.module('MyApp', []);

mod.controller('MyCtrl', function($scope, sharedService) {

    $scope.data=[
    {"name":"a", "count":0,"data":[{"num1":"2"},{"num1":"5"} ]},
    {"name":"b", "count":0,"data":[{"num2":"4"},{"num2":"5"} ]}
];
    
});