json - "Duplicates in a repeater are not allowed" on ng-repeat -
I found JSN data coming back from service request:
{"entries" {"Id": "name": "name": "name": "name": "id": "name": "BM", "good name": "body"}}, {"id": 8029, "name": " And through this code I am seeing the following code in the loop in html: {{Entry.name}} & lt; / Options & gt;
When I run the code I get the following error:
error: [Anjiaripiatt: Deep] is not allowed to duplicate a repeater unique keys Use 'Track' by expression to specify. The following code for my controller is: Prepress myApp.controller ("MyController", ['$ Scope', '$ http', '$ log', function ($ radius, $ http, $ Log) {... $ http.get ('https: // myServiceURL') .Service (data) {$ Scope.entries = data;});}]);
Does someone help me understand why I got this error? Your JSON is invalid and should be:
{" "Name": "month", "good name": "masman": "id": "name": "BM", "good name": "body"}, {"id": 8029, "name" }], "Count": 2}
Also, make sure that you use the document at the right level:
$ http.get ( 'Https: // myServiceURL'). Feature (function (data) {$ scope.entries = data.entries;});
Then, it should work to see it.
Comments
Post a Comment