A jsonobject, I hope to traverse to obtain the key and value. Can I use ng-repeat to obtain it, or other simple methods to achieve the following effect;
The following jsonobject will report an error when using ng-repeat
$scope.data = {'aaa' : '123' , ‘bbb’:'456','ccc':'789'}
<p ng-repeat="m in data">
key = {{m.key}}
value = {{m.value}}
</p>
You can refer to angular’s official explanation of ngRepeat: