{"action":"opened","issue":{"url":"https://api.github.com/repos/kelp404/angular-validator/issues/53","labels_url":"https://api.github.com/repos/kelp404/angular-validator/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/kelp404/angular-validator/issues/53/comments","events_url":"https://api.github.com/repos/kelp404/angular-validator/issues/53/events","html_url":"https://github.com/kelp404/angular-validator/issues/53","id":91230840,"number":53,"title":"validator.provider -> validate promise -> error is not called after all the validators execute","user":{"login":"ionutmandra","id":8750683,"avatar_url":"https://avatars.githubusercontent.com/u/8750683?v=3","gravatar_id":"","url":"https://api.github.com/users/ionutmandra","html_url":"https://github.com/ionutmandra","followers_url":"https://api.github.com/users/ionutmandra/followers","following_url":"https://api.github.com/users/ionutmandra/following{/other_user}","gists_url":"https://api.github.com/users/ionutmandra/gists{/gist_id}","starred_url":"https://api.github.com/users/ionutmandra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ionutmandra/subscriptions","organizations_url":"https://api.github.com/users/ionutmandra/orgs","repos_url":"https://api.github.com/users/ionutmandra/repos","events_url":"https://api.github.com/users/ionutmandra/events{/privacy}","received_events_url":"https://api.github.com/users/ionutmandra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-26T11:42:16Z","updated_at":"2015-06-26T11:42:16Z","closed_at":null,"body":"Hi.\r\nI have let's say 5 validators on a form. On save, i would like to be notified when validation fails, so I can iterate over the failed validators and have some logic. \r\n\r\nThe problem is that after first validation fails, it calls validatedError function, which calls the validate promise error, ( ```` if (count.error++ === 0) { call promise ```` ) so i get notified that my validation operation failed, but I cant detect when all the validators are completed. A quick and dirty fix would be to change the validatedError and instead of ````x();```` to have ````$timeout(function () { x(); });````, so the root promise error would still be called just one time, but after all the operations on current stack (all validators operatios) complete.\r\n\r\nI understand that each control get marked as invalid after all validations happen, and that my ````$validator.validate(...).success(function () {}).error(function () {});```` error get's called, but is there any way to know when all validations are completed ? maybe I am missing some info at this point"}}