{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular.js/issues/12432","labels_url":"https://api.github.com/repos/angular/angular.js/issues/12432/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular.js/issues/12432/comments","events_url":"https://api.github.com/repos/angular/angular.js/issues/12432/events","html_url":"https://github.com/angular/angular.js/issues/12432","id":97187602,"number":12432,"title":"Array can't hold duplicates ??","user":{"login":"kvneswar","id":3105745,"avatar_url":"https://avatars.githubusercontent.com/u/3105745?v=3","gravatar_id":"","url":"https://api.github.com/users/kvneswar","html_url":"https://github.com/kvneswar","followers_url":"https://api.github.com/users/kvneswar/followers","following_url":"https://api.github.com/users/kvneswar/following{/other_user}","gists_url":"https://api.github.com/users/kvneswar/gists{/gist_id}","starred_url":"https://api.github.com/users/kvneswar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kvneswar/subscriptions","organizations_url":"https://api.github.com/users/kvneswar/orgs","repos_url":"https://api.github.com/users/kvneswar/repos","events_url":"https://api.github.com/users/kvneswar/events{/privacy}","received_events_url":"https://api.github.com/users/kvneswar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-25T04:09:51Z","updated_at":"2015-07-25T04:56:22Z","closed_at":null,"body":"Why the following code is not working ?? Array can't hold duplicate values ??\r\n\r\nhttp://plnkr.co/edit/ooJJPv?p=options\r\n\r\n\r\n<html ng-app=\"AngularApp\">\r\n  <head>\r\n    <script src=\"https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js\"></script>\r\n    <script>\r\n      var app=angular.module('AngularApp', []);\r\n      app.controller('myController', function($scope){\r\n       \r\n        $scope.names = ['John', 'John'];\r\n      \r\n        \r\n      });\r\n    </script>\r\n  </head>\r\n  \r\n  <body ng-controller=\"myController\">\r\n    \r\n    \r\n    <ul>\r\n      <li ng-repeat=\"name in names\">\r\n        {{ name }}\r\n      </li>\r\n    </ul>\r\n    \r\n  \r\n    \r\n  </body>\r\n</html>"},"comment":{"url":"https://api.github.com/repos/angular/angular.js/issues/comments/124800268","html_url":"https://github.com/angular/angular.js/issues/12432#issuecomment-124800268","issue_url":"https://api.github.com/repos/angular/angular.js/issues/12432","id":124800268,"user":{"login":"caitp","id":2294695,"avatar_url":"https://avatars.githubusercontent.com/u/2294695?v=3","gravatar_id":"","url":"https://api.github.com/users/caitp","html_url":"https://github.com/caitp","followers_url":"https://api.github.com/users/caitp/followers","following_url":"https://api.github.com/users/caitp/following{/other_user}","gists_url":"https://api.github.com/users/caitp/gists{/gist_id}","starred_url":"https://api.github.com/users/caitp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caitp/subscriptions","organizations_url":"https://api.github.com/users/caitp/orgs","repos_url":"https://api.github.com/users/caitp/repos","events_url":"https://api.github.com/users/caitp/events{/privacy}","received_events_url":"https://api.github.com/users/caitp/received_events","type":"User","site_admin":false},"created_at":"2015-07-25T04:56:22Z","updated_at":"2015-07-25T04:56:22Z","body":"you need to use a \"track by\" expression to make this work (eg \"track by $index\" in http://plnkr.co/edit/rENcz72qVyRmKVW7wwj3?p=preview). This is covered in the documentation for ngRepeat."}}