{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ui-select/issues/1223","repository_url":"https://api.github.com/repos/angular-ui/ui-select","labels_url":"https://api.github.com/repos/angular-ui/ui-select/issues/1223/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-select/issues/1223/comments","events_url":"https://api.github.com/repos/angular-ui/ui-select/issues/1223/events","html_url":"https://github.com/angular-ui/ui-select/issues/1223","id":109261073,"number":1223,"title":"Duplicate search","user":{"login":"furyscript","id":10270403,"avatar_url":"https://avatars.githubusercontent.com/u/10270403?v=3","gravatar_id":"","url":"https://api.github.com/users/furyscript","html_url":"https://github.com/furyscript","followers_url":"https://api.github.com/users/furyscript/followers","following_url":"https://api.github.com/users/furyscript/following{/other_user}","gists_url":"https://api.github.com/users/furyscript/gists{/gist_id}","starred_url":"https://api.github.com/users/furyscript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/furyscript/subscriptions","organizations_url":"https://api.github.com/users/furyscript/orgs","repos_url":"https://api.github.com/users/furyscript/repos","events_url":"https://api.github.com/users/furyscript/events{/privacy}","received_events_url":"https://api.github.com/users/furyscript/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-01T09:24:39Z","updated_at":"2016-03-28T03:12:41Z","closed_at":"2016-03-28T03:12:41Z","body":"I've a problem with multiple select\r\n```javascript\r\n$scope.user = {}; \r\n$scope.user.selected = []; // array ID users\r\n$scope.users = []; // array users founded\r\n$scope.refreshUsers = function(user) {\r\n        return httpService.get('/users?take=200&skip=0&page=1&pageSize=200&filter[filters][0][full_text][value]=' + user, function(data, status) {\r\n            $scope.users = data.data;\r\n            console.log($scope.users);\r\n        });\r\n\r\n};\r\n```\r\n```html\r\n<ui-select multiple='true' ng-model=\"user.selected\" theme=\"bootstrap\" reset-search-input=\"false\">\r\n    <ui-select-match placeholder=\"Seleziona un utente...\">{{$item.first_name}}</ui-select-match>\r\n    <ui-select-choices repeat=\"user.id as user in users track by $index | propsFilter: {first_name: $select.search, last_name: $select.search}\" refresh=\"refreshUsers($select.search)\" refresh-delay=\"0\">\r\n        <div ng-bind-html=\"(user.first_name | highlight: $select.search) + ' ' + (user.last_name | highlight: $select.search)\"></div>\r\n        <small>E-Mail: {{ user.email }} </small>\r\n    </ui-select-choices>\r\n</ui-select>\r\n```\r\n```\r\nError: [ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys .... [...]\r\n```\r\n\r\nThe problem is that when I select a user, and I research it, I've found again him and I can re-insert it, but I don't want it...\r\nI add `track by $index` or `track by user.id` but don't work...\r\n\r\nI search a lot but all solutions not work...\r\n\r\nI would be able to prevent same record in the search dropdown, so I think don't use track by... \r\nThis plunkr could be help: http://plnkr.co/edit/DKcuPuzwfmAsOhlkhylP?p=preview\r\nType Adam and adam again, it show error.."},"comment":{"url":"https://api.github.com/repos/angular-ui/ui-select/issues/comments/202214708","html_url":"https://github.com/angular-ui/ui-select/issues/1223#issuecomment-202214708","issue_url":"https://api.github.com/repos/angular-ui/ui-select/issues/1223","id":202214708,"user":{"login":"wesleycho","id":1703387,"avatar_url":"https://avatars.githubusercontent.com/u/1703387?v=3","gravatar_id":"","url":"https://api.github.com/users/wesleycho","html_url":"https://github.com/wesleycho","followers_url":"https://api.github.com/users/wesleycho/followers","following_url":"https://api.github.com/users/wesleycho/following{/other_user}","gists_url":"https://api.github.com/users/wesleycho/gists{/gist_id}","starred_url":"https://api.github.com/users/wesleycho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wesleycho/subscriptions","organizations_url":"https://api.github.com/users/wesleycho/orgs","repos_url":"https://api.github.com/users/wesleycho/repos","events_url":"https://api.github.com/users/wesleycho/events{/privacy}","received_events_url":"https://api.github.com/users/wesleycho/received_events","type":"User","site_admin":false},"created_at":"2016-03-28T03:12:41Z","updated_at":"2016-03-28T03:12:41Z","body":"Closing as a duplicate issue."}}