{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/5487","repository_url":"https://api.github.com/repos/angular-ui/bootstrap","labels_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/5487/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/5487/comments","events_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/5487/events","html_url":"https://github.com/angular-ui/bootstrap/issues/5487","id":134026081,"number":5487,"title":"typeahead-loading is still true for short time after promise has finished","user":{"login":"naokha","id":7859143,"avatar_url":"https://avatars.githubusercontent.com/u/7859143?v=3","gravatar_id":"","url":"https://api.github.com/users/naokha","html_url":"https://github.com/naokha","followers_url":"https://api.github.com/users/naokha/followers","following_url":"https://api.github.com/users/naokha/following{/other_user}","gists_url":"https://api.github.com/users/naokha/gists{/gist_id}","starred_url":"https://api.github.com/users/naokha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naokha/subscriptions","organizations_url":"https://api.github.com/users/naokha/orgs","repos_url":"https://api.github.com/users/naokha/repos","events_url":"https://api.github.com/users/naokha/events{/privacy}","received_events_url":"https://api.github.com/users/naokha/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-16T16:24:21Z","updated_at":"2016-02-16T19:26:13Z","closed_at":"2016-02-16T19:26:13Z","body":"Hello,\r\nThanks for this nice project.\r\nI'm using typeahead to autocomplete an input with data from a server.\r\nI want to display a spinner while it is retrieving data, the problem is that the spinner continues to be shown (it is to say the variable in the typeahead-loading attribute is still true) even when the data are displayed, for a short time (let's say 1 or 2 seconds) which is weird.\r\n\r\nAm I the only one having this ? \r\nI wanted to get the data retrieved as workaround, meaning if the length of my array of data is not empty, that means I retrieved stuff and I have to hide the spinner, but I don't know how to do this since I use it like this :\r\n`uib-typeahead=\"data for data in myFunctionToRetrieveData($viewValue)\"`\r\n\r\nAny clue ?\r\nThanks"},"comment":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/comments/184841740","html_url":"https://github.com/angular-ui/bootstrap/issues/5487#issuecomment-184841740","issue_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/5487","id":184841740,"user":{"login":"icfantv","id":370054,"avatar_url":"https://avatars.githubusercontent.com/u/370054?v=3","gravatar_id":"","url":"https://api.github.com/users/icfantv","html_url":"https://github.com/icfantv","followers_url":"https://api.github.com/users/icfantv/followers","following_url":"https://api.github.com/users/icfantv/following{/other_user}","gists_url":"https://api.github.com/users/icfantv/gists{/gist_id}","starred_url":"https://api.github.com/users/icfantv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icfantv/subscriptions","organizations_url":"https://api.github.com/users/icfantv/orgs","repos_url":"https://api.github.com/users/icfantv/repos","events_url":"https://api.github.com/users/icfantv/events{/privacy}","received_events_url":"https://api.github.com/users/icfantv/received_events","type":"User","site_admin":false},"created_at":"2016-02-16T19:26:13Z","updated_at":"2016-02-16T19:26:13Z","body":"@naokha, please do not use the issues forum for support-related requests.  Rather, please follow the instructions [here](https://github.com/angular-ui/bootstrap#need-help) as support-related questions are best served by and for the community.  The issues forum is reserved for bugs.  Thanks."}}