Dhana Dhana - 2 months ago 10
Javascript Question

How to iterate and get the json values using angularjs ng-repeat?

I want to iterate and get the name values:

test01
,
test02
and
test03
on my ng-repeat for my given json. How can I get it using ng-repeat ? Please let me know and thanks in advance.

Fiddle is available.

Answer

You can do it like this:

<tr ng-repeat="(key, value) in data.Test">
  <td> {{value.Testing.static.name}} </td>
</tr>

https://jsfiddle.net/nh5zxoka/3/

Comments