I am using Angular js
after hit I got response below response how to loop it
one div name then value like this i want to loop
my response
{
"my2":[
{
"id":5,
"cuid":20,
"name":"my2",
"month":"04",
"created_at":"2018-04-01 00:00:00",
"updated_at":"2018-04-11 00:00:00",
"time":"04:32 PM",
"status":"D"
},
{
"id":4,
"cuid":20,
"name":"my2",
"month":"04",
"created_at":"2018-04-02 00:00:00",
"updated_at":"2018-04-12 00:00:00",
"time":"12:10 PM",
"status":"P"
},
],
"my":[
{
"id":44,
"cuid":21,
"name":"my",
"month":"04",
"created_at":"2018-04-12 00:00:00",
"updated_at":"2018-04-12 00:00:00",
"time":"09:08 PM",
"status":"P"
}
],
"Testing":[
{
"id":43,
"cuid":19,
"name":"Testing",
"month":"04",
"created_at":"2018-04-12 00:00:00",
"updated_at":"2018-04-12 00:00:00",
"time":"09:05 PM",
"status":"P"
}
]
}
i try this
<div ng-repeat="data in reports" class="all_report">
<div ng-repeat="data in reports">
{{reports.indexOf(data)}}
</div>
<!--<div class="date">
{{data.created_at}} <br/>
<span class="month">{{data.created_at}}</span>
</div>
<div class="status">{{data.status}}</div>-->
</div>
but it not print anything how to print in div format
I don't know how to print
I tried above but not printing
how to achieve this to print in ng-repet?