0

Hi all I am returning a dictionary with a key and list of objects from my controller, I would like to bind this to the table or some other using ng-repeat, this is how it looks when returning data from controller

enter image description here

This is my trail

<tr ng-repeat="(key, value) in dic">
<td>{{value}}</td>

Which is displaying entire value

Developer
  • 8,390
  • 41
  • 129
  • 238

2 Answers2

1

This is how finally I got it

 <div ng-repeat="(key, value) in dic">
     {{key}}
 </div>
<div ng-repeat="v in value">
         {{v.requiredcolumn}}
     </div>
Developer
  • 8,390
  • 41
  • 129
  • 238
0

ng-repeat provides a mechanism for accessing the key and value of an object within the iterator. For an example of this, see the answer to this post: How can I iterate over the keys, value in ng-repeat in angular

Community
  • 1
  • 1
Max Harney
  • 26
  • 2