How to iterate over the keys and values with ng-repeat in AngularJS?

后端 未结 9 1798
抹茶落季
抹茶落季 2020-11-22 04:36

In my controller, I have data like: $scope.object = data

Now this data is the dictionary with keys and values from json.

I can acce

9条回答
  •  不知归路
    2020-11-22 04:52

    How about:

    {{key}} {{ value }}

    This method is listed in the docs: https://docs.angularjs.org/api/ng/directive/ngRepeat

提交回复
热议问题