javascript - AngularJS - Duplicate Key in ngrepeat error -


I want to parse this controller in my view:

  testapp.controller ( "SearchController", function ($ radius, $ rootsecope, $ http, $ location) {var load = function () {console.log ('call load () ...'); var url = 'products.json'; If ($ Rootscope & amp; $ rootScope.appUrl) {url = $ rootScope.appUrl + '/' + url;} $ http.get (url) .success (function (data, position, header, config) {$ scope Product = Data; Angular Dummy ($ scope.product, $ scope.copy);});} Load ();});   

However, I have implemented parsing like this:

   & Lt; Table class = "table" & gt; & Lt; Thead & gt; & Lt; TR & gt; & Lt; Width = "25px" & gt; Id & lt; / Th & gt; & Lt; Th & gt; Title & lt; / Th & gt; & Lt; Th & gt; Price & lt; / Th & gt; & Lt; Th & gt; Details & lt; / Th & gt; & Lt; Width = "50px" & gt; & Lt; / V & gt; & Lt; / TR & gt; & Lt; / Thead & gt; & Lt; Tbody & gt; & Lt; Tr ng-repeat = "page in product" & gt; & Lt; TD & gt; {{P.id}} & lt; / TD & gt; & Lt; TD & gt; {{P.title}} & lt; / TD & gt; & Lt; TD & gt; {{P.price}} & lt; / TD & gt; & Lt; TD & gt; {{P.description}} & lt; / TD & gt; & Lt ;! - ng-show = "user.id and user.id == e. User_id" - & gt; & Lt; / TR & gt; & Lt; / Tbody & gt; & Lt; / Table & gt; & Lt ;! - ng-show = "user.username" - & gt; & Lt; P & gt; & Lt; / Div & gt;   

What I'm currently getting:

  Error: [NGREPAT: Deep] http://errors.angularjs.org/1.2.8/ NgRepeat / dupes on error (original) at https://ajax.googleapis.com/ajax/libs/angularjs/1.2.8/angular.min.js? P0 = p% 20in% 20product & amp; P1 = string% 3A% 22: 6: 44 9 at https://ajax.googleapis.com/ajax/libs/angularjs/1.2.8/angular.min.js184:445 Object.fn (https: // Ajax.googleapis.com/ajax/Libs/AngelRaj/1.8.8 / CoonerM.JS: 99: 371) H. Digest (https://ajax.googleapis.com/ajax/libs/angularjs/1.2.8/angular.min.js: 100: 29 9) H. $ Apply (https://ajax.googleapis.com/ajax/libs/angularjs/1.2.8/angular.min.js:103:100) at f (https: //ajax.googleapis) .com / ajax / libs / Angularjs / 1.2.8 / angular .min.js: 67: 98) on e (https://ajax.googleapis.com/ajax/libs/angularjs/1.2.8/angular.min js: 71: 85) XMLHttpRequest At .v.onreadystatechange (https://ajax.googleapis.com/ajax/libs/angularjs/1.2.8/angular.min.js:72:133)   

I gave it to him Tried to change:

P $ id in the product

WhiC gives me a syntax error .

I appreciate your suggestions!

Try it

    



Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -