{"action":"created","issue":{"url":"https://api.github.com/repos/ghiden/angucomplete-alt/issues/308","labels_url":"https://api.github.com/repos/ghiden/angucomplete-alt/issues/308/labels{/name}","comments_url":"https://api.github.com/repos/ghiden/angucomplete-alt/issues/308/comments","events_url":"https://api.github.com/repos/ghiden/angucomplete-alt/issues/308/events","html_url":"https://github.com/ghiden/angucomplete-alt/issues/308","id":118779990,"number":308,"title":"Event on selected list item","user":{"login":"Matthewloughton","id":15347125,"avatar_url":"https://avatars.githubusercontent.com/u/15347125?v=3","gravatar_id":"","url":"https://api.github.com/users/Matthewloughton","html_url":"https://github.com/Matthewloughton","followers_url":"https://api.github.com/users/Matthewloughton/followers","following_url":"https://api.github.com/users/Matthewloughton/following{/other_user}","gists_url":"https://api.github.com/users/Matthewloughton/gists{/gist_id}","starred_url":"https://api.github.com/users/Matthewloughton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Matthewloughton/subscriptions","organizations_url":"https://api.github.com/users/Matthewloughton/orgs","repos_url":"https://api.github.com/users/Matthewloughton/repos","events_url":"https://api.github.com/users/Matthewloughton/events{/privacy}","received_events_url":"https://api.github.com/users/Matthewloughton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-25T07:42:51Z","updated_at":"2015-12-04T10:07:42Z","closed_at":null,"body":"Good day,\r\n\r\nI need a function to fire as soon as a user selects a list item (in the suggested list). I have scoured the internet for an answer, but I only found this: http://stackoverflow.com/questions/26367277/angucomplete-fire-event-when-value-is-selected-in-angularjs\r\nwhich actually led me to use angucomplete-alt instead of the standard angucomplete however I have not found a solution.\r\n\r\nSome backgroud of what I need to do:\r\ninput box with autocomplete which searches through a list of locations (array of objects) that contain a latitude and longitude (done, works like a charm btw). When the user selects a location from the list, it needs to run a function that passes in the location object and then adds location (using lat and long of that location object) to a map.\r\n\r\nI've tried input-changed but that only triggers when user is typing inside the input box. I tried both focus-in and focus-out but it did not help.\r\n\r\nLooking forward to your response."},"comment":{"url":"https://api.github.com/repos/ghiden/angucomplete-alt/issues/comments/161928010","html_url":"https://github.com/ghiden/angucomplete-alt/issues/308#issuecomment-161928010","issue_url":"https://api.github.com/repos/ghiden/angucomplete-alt/issues/308","id":161928010,"user":{"login":"Matthewloughton","id":15347125,"avatar_url":"https://avatars.githubusercontent.com/u/15347125?v=3","gravatar_id":"","url":"https://api.github.com/users/Matthewloughton","html_url":"https://github.com/Matthewloughton","followers_url":"https://api.github.com/users/Matthewloughton/followers","following_url":"https://api.github.com/users/Matthewloughton/following{/other_user}","gists_url":"https://api.github.com/users/Matthewloughton/gists{/gist_id}","starred_url":"https://api.github.com/users/Matthewloughton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Matthewloughton/subscriptions","organizations_url":"https://api.github.com/users/Matthewloughton/orgs","repos_url":"https://api.github.com/users/Matthewloughton/repos","events_url":"https://api.github.com/users/Matthewloughton/events{/privacy}","received_events_url":"https://api.github.com/users/Matthewloughton/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T10:07:42Z","updated_at":"2015-12-04T10:07:42Z","body":"What i was trying to do is render up the angucomplete in the repeater with a json object (user viewing something that was saved). I found a solution, not sure why I didnt think of it before but I've just swapped out the angucomplete boxes for normal input boxes when the user is viewing the information, they can't edit whats been saved so I asked myself \"why do they need the autocomplete functionality?\" \r\n\r\nCiao"}}