{"action":"created","issue":{"url":"https://api.github.com/repos/dnauck/angular-advanced-searchbox/issues/2","labels_url":"https://api.github.com/repos/dnauck/angular-advanced-searchbox/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/dnauck/angular-advanced-searchbox/issues/2/comments","events_url":"https://api.github.com/repos/dnauck/angular-advanced-searchbox/issues/2/events","html_url":"https://github.com/dnauck/angular-advanced-searchbox/issues/2","id":54392057,"number":2,"title":"Submit Search.","user":{"login":"vikasgupta1986","id":1524911,"avatar_url":"https://avatars.githubusercontent.com/u/1524911?v=3","gravatar_id":"","url":"https://api.github.com/users/vikasgupta1986","html_url":"https://github.com/vikasgupta1986","followers_url":"https://api.github.com/users/vikasgupta1986/followers","following_url":"https://api.github.com/users/vikasgupta1986/following{/other_user}","gists_url":"https://api.github.com/users/vikasgupta1986/gists{/gist_id}","starred_url":"https://api.github.com/users/vikasgupta1986/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vikasgupta1986/subscriptions","organizations_url":"https://api.github.com/users/vikasgupta1986/orgs","repos_url":"https://api.github.com/users/vikasgupta1986/repos","events_url":"https://api.github.com/users/vikasgupta1986/events{/privacy}","received_events_url":"https://api.github.com/users/vikasgupta1986/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dnauck/angular-advanced-searchbox/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"dnauck","id":97584,"avatar_url":"https://avatars.githubusercontent.com/u/97584?v=3","gravatar_id":"","url":"https://api.github.com/users/dnauck","html_url":"https://github.com/dnauck","followers_url":"https://api.github.com/users/dnauck/followers","following_url":"https://api.github.com/users/dnauck/following{/other_user}","gists_url":"https://api.github.com/users/dnauck/gists{/gist_id}","starred_url":"https://api.github.com/users/dnauck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dnauck/subscriptions","organizations_url":"https://api.github.com/users/dnauck/orgs","repos_url":"https://api.github.com/users/dnauck/repos","events_url":"https://api.github.com/users/dnauck/events{/privacy}","received_events_url":"https://api.github.com/users/dnauck/received_events","type":"User","site_admin":false},"milestone":null,"comments":12,"created_at":"2015-01-14T23:24:39Z","updated_at":"2016-01-21T09:34:05Z","closed_at":null,"body":"I tried this directive but ran into an issue with submitting my search. Seems like, as you start typing in the search box, the \"ng-model\" variable changes. What i want to do is: submit search when user has entered a value. I tried it by putting a watch on the \"ng-model\" variable, but that didn't work. Any ideas?"},"comment":{"url":"https://api.github.com/repos/dnauck/angular-advanced-searchbox/issues/comments/173515635","html_url":"https://github.com/dnauck/angular-advanced-searchbox/issues/2#issuecomment-173515635","issue_url":"https://api.github.com/repos/dnauck/angular-advanced-searchbox/issues/2","id":173515635,"user":{"login":"fizerkhan","id":1433380,"avatar_url":"https://avatars.githubusercontent.com/u/1433380?v=3","gravatar_id":"","url":"https://api.github.com/users/fizerkhan","html_url":"https://github.com/fizerkhan","followers_url":"https://api.github.com/users/fizerkhan/followers","following_url":"https://api.github.com/users/fizerkhan/following{/other_user}","gists_url":"https://api.github.com/users/fizerkhan/gists{/gist_id}","starred_url":"https://api.github.com/users/fizerkhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fizerkhan/subscriptions","organizations_url":"https://api.github.com/users/fizerkhan/orgs","repos_url":"https://api.github.com/users/fizerkhan/repos","events_url":"https://api.github.com/users/fizerkhan/events{/privacy}","received_events_url":"https://api.github.com/users/fizerkhan/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T09:34:05Z","updated_at":"2016-01-21T09:34:05Z","body":"The event `advanced-searchbox:leavedEditMode` does not solve the problem of submit. It should open suggestions box only when mouse click happens, not during `enter` button press. I think, if it calls submit event when `enter` button is pressed (or) `remove` or `remove all` is invoked. "}}