{"action":"created","issue":{"url":"https://api.github.com/repos/angular/material/issues/5277","repository_url":"https://api.github.com/repos/angular/material","labels_url":"https://api.github.com/repos/angular/material/issues/5277/labels{/name}","comments_url":"https://api.github.com/repos/angular/material/issues/5277/comments","events_url":"https://api.github.com/repos/angular/material/issues/5277/events","html_url":"https://github.com/angular/material/issues/5277","id":112450586,"number":5277,"title":"md-autocomplete no way to prefill search","user":{"login":"elubin","id":442368,"avatar_url":"https://avatars.githubusercontent.com/u/442368?v=3","gravatar_id":"","url":"https://api.github.com/users/elubin","html_url":"https://github.com/elubin","followers_url":"https://api.github.com/users/elubin/followers","following_url":"https://api.github.com/users/elubin/following{/other_user}","gists_url":"https://api.github.com/users/elubin/gists{/gist_id}","starred_url":"https://api.github.com/users/elubin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elubin/subscriptions","organizations_url":"https://api.github.com/users/elubin/orgs","repos_url":"https://api.github.com/users/elubin/repos","events_url":"https://api.github.com/users/elubin/events{/privacy}","received_events_url":"https://api.github.com/users/elubin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"topherfangio","id":54370,"avatar_url":"https://avatars.githubusercontent.com/u/54370?v=3","gravatar_id":"","url":"https://api.github.com/users/topherfangio","html_url":"https://github.com/topherfangio","followers_url":"https://api.github.com/users/topherfangio/followers","following_url":"https://api.github.com/users/topherfangio/following{/other_user}","gists_url":"https://api.github.com/users/topherfangio/gists{/gist_id}","starred_url":"https://api.github.com/users/topherfangio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/topherfangio/subscriptions","organizations_url":"https://api.github.com/users/topherfangio/orgs","repos_url":"https://api.github.com/users/topherfangio/repos","events_url":"https://api.github.com/users/topherfangio/events{/privacy}","received_events_url":"https://api.github.com/users/topherfangio/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/angular/material/milestones/22","html_url":"https://github.com/angular/material/milestones/1.0-rc3","labels_url":"https://api.github.com/repos/angular/material/milestones/22/labels","id":1384342,"number":22,"title":"1.0-rc3","description":"","creator":{"login":"ThomasBurleson","id":210413,"avatar_url":"https://avatars.githubusercontent.com/u/210413?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasBurleson","html_url":"https://github.com/ThomasBurleson","followers_url":"https://api.github.com/users/ThomasBurleson/followers","following_url":"https://api.github.com/users/ThomasBurleson/following{/other_user}","gists_url":"https://api.github.com/users/ThomasBurleson/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasBurleson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasBurleson/subscriptions","organizations_url":"https://api.github.com/users/ThomasBurleson/orgs","repos_url":"https://api.github.com/users/ThomasBurleson/repos","events_url":"https://api.github.com/users/ThomasBurleson/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasBurleson/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":127,"state":"closed","created_at":"2015-10-29T22:04:57Z","updated_at":"2015-11-26T09:46:45Z","due_on":"2015-11-05T06:00:00Z","closed_at":"2015-11-07T13:53:38Z"},"comments":10,"created_at":"2015-10-20T20:12:41Z","updated_at":"2016-05-02T23:54:01Z","closed_at":"2015-11-02T21:58:01Z","body":"My use case is a button that says 'find other things like this one' and that launches a modal with an md-chips that contains an md-autocomplete.  I want the autocomplete to initialize with my string 'appl' and have it fire off the query immediately.\r\n\r\n`<md-autocomplete md-no-cache\r\n                             md-autofocus=\"true\"\r\n                             md-min-length=\"2\"\r\n                             md-delay=\"300\"\r\n                             md-selected-item=\"selItem\"\r\n                             md-search-text=\"srchItem\"\r\n                             md-items=\"item in queryValues(srchItem)\">`\r\n\r\nin my controller I tried $scope.srchItem = 'appl';  this DOES prefill the search string, but does not fire the queryValues() method.  (same if i put that in a $timeout)\r\n\r\nCan you add a way for me to initialize the control with a search string value, that will fetch items (if my min-length and other criteria is met)"},"comment":{"url":"https://api.github.com/repos/angular/material/issues/comments/216398625","html_url":"https://github.com/angular/material/issues/5277#issuecomment-216398625","issue_url":"https://api.github.com/repos/angular/material/issues/5277","id":216398625,"user":{"login":"jornncc","id":15808559,"avatar_url":"https://avatars.githubusercontent.com/u/15808559?v=3","gravatar_id":"","url":"https://api.github.com/users/jornncc","html_url":"https://github.com/jornncc","followers_url":"https://api.github.com/users/jornncc/followers","following_url":"https://api.github.com/users/jornncc/following{/other_user}","gists_url":"https://api.github.com/users/jornncc/gists{/gist_id}","starred_url":"https://api.github.com/users/jornncc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jornncc/subscriptions","organizations_url":"https://api.github.com/users/jornncc/orgs","repos_url":"https://api.github.com/users/jornncc/repos","events_url":"https://api.github.com/users/jornncc/events{/privacy}","received_events_url":"https://api.github.com/users/jornncc/received_events","type":"User","site_admin":false},"created_at":"2016-05-02T23:54:01Z","updated_at":"2016-05-02T23:54:01Z","body":"@elubin thanks for the reply. That makes sense. We were able to figure out our issue as well; all we had to do was to md-no-cache=true to get the list to recreate the md-items. "}}