{"action":"created","issue":{"url":"https://api.github.com/repos/angular/material/issues/5910","labels_url":"https://api.github.com/repos/angular/material/issues/5910/labels{/name}","comments_url":"https://api.github.com/repos/angular/material/issues/5910/comments","events_url":"https://api.github.com/repos/angular/material/issues/5910/events","html_url":"https://github.com/angular/material/issues/5910","id":118757288,"number":5910,"title":"md-autocomplete results don't update","user":{"login":"STOpandthink","id":1097703,"avatar_url":"https://avatars.githubusercontent.com/u/1097703?v=3","gravatar_id":"","url":"https://api.github.com/users/STOpandthink","html_url":"https://github.com/STOpandthink","followers_url":"https://api.github.com/users/STOpandthink/followers","following_url":"https://api.github.com/users/STOpandthink/following{/other_user}","gists_url":"https://api.github.com/users/STOpandthink/gists{/gist_id}","starred_url":"https://api.github.com/users/STOpandthink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/STOpandthink/subscriptions","organizations_url":"https://api.github.com/users/STOpandthink/orgs","repos_url":"https://api.github.com/users/STOpandthink/repos","events_url":"https://api.github.com/users/STOpandthink/events{/privacy}","received_events_url":"https://api.github.com/users/STOpandthink/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-25T04:10:34Z","updated_at":"2015-12-08T04:31:33Z","closed_at":null,"body":"When I type text into autocomplete, the results show up, but when I continue typing they don't update, even though the loading bar does flicker. I checked my `performSearch` function, and it definitely returns very different results. The results do update if I erase all the text and start typing again.\r\n\r\n```javascript\r\nscope.getSearchResults = function(text) {\r\n  var deferred = $q.defer();\r\n  // performSearch returns an array of objects\r\n  performSearch({term: text}, function(results) {\r\n    deferred.resolve(results);\r\n  });\r\n  return deferred.promise;\r\n};\r\nscope.searchResultSelected = function(result, blah, bloo) {\r\n  window.location.href = \"/\";\r\n}\r\n```\r\n\r\n```html\r\n<md-autocomplete md-selected-item=\"searchItem\"\r\n\t\t\t\tmd-search-text=\"searchText\"\r\n\t\t\t\tmd-items=\"result in getSearchResults(searchText)\"\r\n\t\t\t\tmd-item-text=\"searchText\"\r\n\t\t\t\tmd-selected-item-change=\"searchResultSelected(result)\"\r\n\t\t\t\tmd-no-cache=\"true\"\r\n\t\t\t\tmd-min-length=\"2\"\r\n\t\t\t\tmd-delay=\"300\"\r\n\t\t\t\tmd-autofocus=\"true\"\r\n\t\t\t\tplaceholder=\"Search\"\r\n\t\t\t\tflex=\"80\">\r\n  <md-item-template>\r\n    <a href=\"#\">{{result.label}}</a>\r\n  </md-item-template>\r\n  <md-not-found>\r\n    No matches found.\r\n  </md-not-found>\r\n</md-autocomplete>\r\n```"},"comment":{"url":"https://api.github.com/repos/angular/material/issues/comments/162760008","html_url":"https://github.com/angular/material/issues/5910#issuecomment-162760008","issue_url":"https://api.github.com/repos/angular/material/issues/5910","id":162760008,"user":{"login":"RolandHeath","id":329209,"avatar_url":"https://avatars.githubusercontent.com/u/329209?v=3","gravatar_id":"","url":"https://api.github.com/users/RolandHeath","html_url":"https://github.com/RolandHeath","followers_url":"https://api.github.com/users/RolandHeath/followers","following_url":"https://api.github.com/users/RolandHeath/following{/other_user}","gists_url":"https://api.github.com/users/RolandHeath/gists{/gist_id}","starred_url":"https://api.github.com/users/RolandHeath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RolandHeath/subscriptions","organizations_url":"https://api.github.com/users/RolandHeath/orgs","repos_url":"https://api.github.com/users/RolandHeath/repos","events_url":"https://api.github.com/users/RolandHeath/events{/privacy}","received_events_url":"https://api.github.com/users/RolandHeath/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T04:31:33Z","updated_at":"2015-12-08T04:31:33Z","body":"Isn't it more likely that this is an issue with the virtual-repeat that autocomplete is using? This probably has to do with when the compilation step is happening, and what steps happen before/after it."}}