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

后端 未结 9 1823
抹茶落季
抹茶落季 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 05:04

        Use below code it is working to display your key and value here is key start with 1:
             
                       {{key +1}}
                       {{value.title}}
                     
    Below is document link for it. 
    

    https://docs.angularjs.org/api/ng/directive/ngRepeat

提交回复
热议问题