I am trying to print the fetched data in JSON using angular . The JSON is
"products": {
"65": {
"5": {
"id": 5,
"product_id": 1,
"client_id": 96,
"ticket_id": 65,
"sold_by": 6,
"product_price": 13000,
"sold_from_date": 1434459600,
"sold_to_date": 1444741200
},
How to ng-repeat this in the front-end to display the data from this?
I tried this but its not working.
<div ng-repeat="(product_id, product1) in acct_details.products">
<div ng-repeat="(product_id2, product2) in product1">
<tr ng-repeat="product in product2">
<td> <input class="chkbox-style" type="checkbox"></input>
<p class="para-inline">{{product.product_name}}</p>
</td>
<td>
{{product.product_price | currency:"₹"}}
</td>
<td>
{{product.sold_from_date *1000| date: 'mediumDate'}}
</td>
<td>
{{product.sold_to_date *1000| date:'mediumDate'}}
</td>
</tr>
</div>
</div>****