{"action":"created","issue":{"url":"https://api.github.com/repos/mbenford/ngTagsInput/issues/622","repository_url":"https://api.github.com/repos/mbenford/ngTagsInput","labels_url":"https://api.github.com/repos/mbenford/ngTagsInput/issues/622/labels{/name}","comments_url":"https://api.github.com/repos/mbenford/ngTagsInput/issues/622/comments","events_url":"https://api.github.com/repos/mbenford/ngTagsInput/issues/622/events","html_url":"https://github.com/mbenford/ngTagsInput/issues/622","id":131204533,"number":622,"title":"on-tag-added expression should be evaluated AFTER tag is added to ngModel whenever adding a tag","user":{"login":"MichaelArnoldOwens","id":9525360,"avatar_url":"https://avatars.githubusercontent.com/u/9525360?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelArnoldOwens","html_url":"https://github.com/MichaelArnoldOwens","followers_url":"https://api.github.com/users/MichaelArnoldOwens/followers","following_url":"https://api.github.com/users/MichaelArnoldOwens/following{/other_user}","gists_url":"https://api.github.com/users/MichaelArnoldOwens/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelArnoldOwens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelArnoldOwens/subscriptions","organizations_url":"https://api.github.com/users/MichaelArnoldOwens/orgs","repos_url":"https://api.github.com/users/MichaelArnoldOwens/repos","events_url":"https://api.github.com/users/MichaelArnoldOwens/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelArnoldOwens/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-04T00:49:43Z","updated_at":"2016-02-17T10:35:56Z","closed_at":null,"body":"When I enter in the first tag, on-tag-added expression gets evaluated BEFORE the tag is added to ngModel. However on the second tag I add, ng-model is updated AFTER evaluating on-tag-added expression.\r\n\r\nThis inconsistent behavior should be fixed such that whether it's the 1st tag or nth tag, the on-tag-added expression should be evaluated after ngModel is updated."},"comment":{"url":"https://api.github.com/repos/mbenford/ngTagsInput/issues/comments/185145843","html_url":"https://github.com/mbenford/ngTagsInput/issues/622#issuecomment-185145843","issue_url":"https://api.github.com/repos/mbenford/ngTagsInput/issues/622","id":185145843,"user":{"login":"corse-xx","id":4817065,"avatar_url":"https://avatars.githubusercontent.com/u/4817065?v=3","gravatar_id":"","url":"https://api.github.com/users/corse-xx","html_url":"https://github.com/corse-xx","followers_url":"https://api.github.com/users/corse-xx/followers","following_url":"https://api.github.com/users/corse-xx/following{/other_user}","gists_url":"https://api.github.com/users/corse-xx/gists{/gist_id}","starred_url":"https://api.github.com/users/corse-xx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corse-xx/subscriptions","organizations_url":"https://api.github.com/users/corse-xx/orgs","repos_url":"https://api.github.com/users/corse-xx/repos","events_url":"https://api.github.com/users/corse-xx/events{/privacy}","received_events_url":"https://api.github.com/users/corse-xx/received_events","type":"User","site_admin":false},"created_at":"2016-02-17T10:35:56Z","updated_at":"2016-02-17T10:35:56Z","body":"are you sure your initiliasing the tag's model variable as an array? i had this problem until i initialised it as tags = []; in the controller"}}