{"action":"opened","issue":{"url":"https://api.github.com/repos/driftyco/ionic-v1/issues/88","repository_url":"https://api.github.com/repos/driftyco/ionic-v1","labels_url":"https://api.github.com/repos/driftyco/ionic-v1/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic-v1/issues/88/comments","events_url":"https://api.github.com/repos/driftyco/ionic-v1/issues/88/events","html_url":"https://github.com/driftyco/ionic-v1/issues/88","id":200741287,"number":88,"title":"Track by $index or anything doesnt work with collection-repeat","user":{"login":"jgw96","id":8823093,"avatar_url":"https://avatars.githubusercontent.com/u/8823093?v=3","gravatar_id":"","url":"https://api.github.com/users/jgw96","html_url":"https://github.com/jgw96","followers_url":"https://api.github.com/users/jgw96/followers","following_url":"https://api.github.com/users/jgw96/following{/other_user}","gists_url":"https://api.github.com/users/jgw96/gists{/gist_id}","starred_url":"https://api.github.com/users/jgw96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgw96/subscriptions","organizations_url":"https://api.github.com/users/jgw96/orgs","repos_url":"https://api.github.com/users/jgw96/repos","events_url":"https://api.github.com/users/jgw96/events{/privacy}","received_events_url":"https://api.github.com/users/jgw96/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-13T21:57:09Z","updated_at":"2017-01-13T21:57:09Z","closed_at":null,"body":"_From @nickbar06 on September 30, 2016 19:27_\n\nI have a custom filter on an ion item collection-repeat \n\n```\n<a class=\"item\" ng-click=\"setFilter('{{userId}}');\">\n   My Open Items\n </a>\n```\n\n```\n$scope.setFilter = function setFilter(myFilter) {\n    console.log(myFilter)\n    if(myFilter == 'New' || myFilter == 'In-Progress' || myFilter == '')\n    {\n      $scope.myFilter = {RequestStatus: myFilter};\n    }\n    else\n    {\n      $scope.myFilter = {userID: myFilter}\n    }\n\n    $ionicScrollDelegate.scrollTop();\n  }\n```\n\n`<ion-item collection-repeat=\"item in openItemList | filter: myFilter track by item.Id\">`\n\nI have tried ng-repeat, and filtering through ng-repeat makes it super slow. \n\nThis is the problem, I use avatar https://github.com/uttesh/ionic-letteravatar/issues/1 on ion items, if a filter is added to the list (myFilter), the filtered list won't have the correct avatar, but the old avatar based on the previous $index. \n\nWhen I use ng-repeat=\"item in openItemList | filter: myFilter track by item.Id\" it works like a charm and it shows me all the correct avatars for the users, but not when i use collection repeat, it just doesnt do anything.\n\nI just need collection-repeat to behave like ng-repeat\n\nIonic Version 1.3.1\n\nCordova CLI: 6.3.1\nIonic Framework Version: 1.3.1\nIonic CLI Version: 2.0.0\nIonic App Lib Version: 2.0.0-beta.20\nOS:\nNode Version: v4.5.0\n\n\n_Copied from original issue: driftyco/ionic#8366_"}}
{"actor":{"display_login":"jgw96"}}