{"action":"created","issue":{"url":"https://api.github.com/repos/dotansimha/angularjs-dropdown-multiselect/issues/85","labels_url":"https://api.github.com/repos/dotansimha/angularjs-dropdown-multiselect/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/dotansimha/angularjs-dropdown-multiselect/issues/85/comments","events_url":"https://api.github.com/repos/dotansimha/angularjs-dropdown-multiselect/issues/85/events","html_url":"https://github.com/dotansimha/angularjs-dropdown-multiselect/issues/85","id":65650526,"number":85,"title":"event within ng-repeat","user":{"login":"ShadowZ0","id":8359122,"avatar_url":"https://avatars.githubusercontent.com/u/8359122?v=3","gravatar_id":"","url":"https://api.github.com/users/ShadowZ0","html_url":"https://github.com/ShadowZ0","followers_url":"https://api.github.com/users/ShadowZ0/followers","following_url":"https://api.github.com/users/ShadowZ0/following{/other_user}","gists_url":"https://api.github.com/users/ShadowZ0/gists{/gist_id}","starred_url":"https://api.github.com/users/ShadowZ0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShadowZ0/subscriptions","organizations_url":"https://api.github.com/users/ShadowZ0/orgs","repos_url":"https://api.github.com/users/ShadowZ0/repos","events_url":"https://api.github.com/users/ShadowZ0/events{/privacy}","received_events_url":"https://api.github.com/users/ShadowZ0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-01T10:08:59Z","updated_at":"2015-04-02T16:08:04Z","closed_at":null,"body":"try to call the event handler to trigger and update for an item within the ng-repeat but unfortunately it cannot find the item within the scope, example as follow:\r\n\r\n<div ng-repeat=\"client in clients\">\r\n    <input ng-model=\"item.abc\" ng-change=\"save(client)\">\r\n    <div ng-dropdown-multiselect=\"\" ... events = \"{onItemSelect: function(item) { $scope.save(client) } }\">  </div>\r\n</div>\r\n\r\nthe error in browser console would be client is not defined.. \r\n\r\nis there anyway to by pass this?\r\n\r\nthanks!"},"comment":{"url":"https://api.github.com/repos/dotansimha/angularjs-dropdown-multiselect/issues/comments/88960637","html_url":"https://github.com/dotansimha/angularjs-dropdown-multiselect/issues/85#issuecomment-88960637","issue_url":"https://api.github.com/repos/dotansimha/angularjs-dropdown-multiselect/issues/85","id":88960637,"user":{"login":"ancarius","id":1067221,"avatar_url":"https://avatars.githubusercontent.com/u/1067221?v=3","gravatar_id":"","url":"https://api.github.com/users/ancarius","html_url":"https://github.com/ancarius","followers_url":"https://api.github.com/users/ancarius/followers","following_url":"https://api.github.com/users/ancarius/following{/other_user}","gists_url":"https://api.github.com/users/ancarius/gists{/gist_id}","starred_url":"https://api.github.com/users/ancarius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ancarius/subscriptions","organizations_url":"https://api.github.com/users/ancarius/orgs","repos_url":"https://api.github.com/users/ancarius/repos","events_url":"https://api.github.com/users/ancarius/events{/privacy}","received_events_url":"https://api.github.com/users/ancarius/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T16:08:04Z","updated_at":"2015-04-02T16:08:04Z","body":"Well, I'm guessing you have a client variable that's not defined somewhere. If your code is wrapped, you might need to pass it as a parameter.\r\n\r\nThis isn't much to go on."}}