FIX» NG-Repeat Error: ngRepeat:dupes AngularJS, SharePoint 2010, .JSON
The short » SharePoint (especially 2010) is the Internet Explorer of CMS when progressive/standard technology is in.
If you get the “Error: ngRepeat:dupesDuplicate Key in Repeater” when working with AngularJS, SharePoint 2010 and a JSON file, simply rename your .json file extensions and be sure to update your restService path.
No additional "track by $index" was required for my situation to work.
Luckily I was forwarded this link with the rationale:
.json becomes an important file type in SP2010. SP2010 includes certains webservice endpoints. The location of these files is 14hive\isapi folder. The extension of these files are .json. That is the reason it gives such a error.
"cares only that the contents of a json file is json - not its file extension"
There are additional reasons for ngRepeat:dupes error, but likely if you are not getting it on your dev environment and all the sudden do when you push to SharePoint check this first – it’s at least fast and painless.
Answered as a solution on stackoverflow














