{"action":"created","issue":{"url":"https://api.github.com/repos/mbenford/ngTagsInput/issues/314","labels_url":"https://api.github.com/repos/mbenford/ngTagsInput/issues/314/labels{/name}","comments_url":"https://api.github.com/repos/mbenford/ngTagsInput/issues/314/comments","events_url":"https://api.github.com/repos/mbenford/ngTagsInput/issues/314/events","html_url":"https://github.com/mbenford/ngTagsInput/issues/314","id":52086506,"number":314,"title":"Access leftover text and allow a callback to decide current value will be added","user":{"login":"nhduc296","id":4246176,"avatar_url":"https://avatars.githubusercontent.com/u/4246176?v=3","gravatar_id":"","url":"https://api.github.com/users/nhduc296","html_url":"https://github.com/nhduc296","followers_url":"https://api.github.com/users/nhduc296/followers","following_url":"https://api.github.com/users/nhduc296/following{/other_user}","gists_url":"https://api.github.com/users/nhduc296/gists{/gist_id}","starred_url":"https://api.github.com/users/nhduc296/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhduc296/subscriptions","organizations_url":"https://api.github.com/users/nhduc296/orgs","repos_url":"https://api.github.com/users/nhduc296/repos","events_url":"https://api.github.com/users/nhduc296/events{/privacy}","received_events_url":"https://api.github.com/users/nhduc296/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mbenford/ngTagsInput/labels/status:%20replied","name":"status: replied","color":"9A2EFE"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-12-16T08:47:07Z","updated_at":"2015-02-25T07:54:32Z","closed_at":"2015-02-25T03:08:20Z","body":"I found this topic: \r\n\r\nhttp://stackoverflow.com/questions/25436267/how-to-access-leftover-text-in-ng-tags-input\r\n\r\nSometime we have to do a lot of validation rules before add value to array.\r\n\r\nPlease provide an left-over text binding and a callback like this.\r\n\r\n<tags-input ....\r\n                   ....\r\n                   onPostTagAdded = \"postTagAdded($tag)\"></tags-input>\r\n\r\n\r\nexample: \r\nfunction postTagAdded(tag){\r\n           if(tag === 'blahblah' ){\r\n               return false;\r\n            }else{ \r\n               return true;\r\n           }\r\n}"},"comment":{"url":"https://api.github.com/repos/mbenford/ngTagsInput/issues/comments/75919450","html_url":"https://github.com/mbenford/ngTagsInput/issues/314#issuecomment-75919450","issue_url":"https://api.github.com/repos/mbenford/ngTagsInput/issues/314","id":75919450,"user":{"login":"nhduc296","id":4246176,"avatar_url":"https://avatars.githubusercontent.com/u/4246176?v=3","gravatar_id":"","url":"https://api.github.com/users/nhduc296","html_url":"https://github.com/nhduc296","followers_url":"https://api.github.com/users/nhduc296/followers","following_url":"https://api.github.com/users/nhduc296/following{/other_user}","gists_url":"https://api.github.com/users/nhduc296/gists{/gist_id}","starred_url":"https://api.github.com/users/nhduc296/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhduc296/subscriptions","organizations_url":"https://api.github.com/users/nhduc296/orgs","repos_url":"https://api.github.com/users/nhduc296/repos","events_url":"https://api.github.com/users/nhduc296/events{/privacy}","received_events_url":"https://api.github.com/users/nhduc296/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T07:54:32Z","updated_at":"2015-02-25T07:54:32Z","body":"I'm sorry, this issue should be closed"}}