{"action":"created","issue":{"url":"https://api.github.com/repos/turinggroup/angular-validator/issues/44","labels_url":"https://api.github.com/repos/turinggroup/angular-validator/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/turinggroup/angular-validator/issues/44/comments","events_url":"https://api.github.com/repos/turinggroup/angular-validator/issues/44/events","html_url":"https://github.com/turinggroup/angular-validator/pull/44","id":89665961,"number":44,"title":"add form invalid message feature, inject custom service into directive.","user":{"login":"codonist","id":9259130,"avatar_url":"https://avatars.githubusercontent.com/u/9259130?v=3","gravatar_id":"","url":"https://api.github.com/users/codonist","html_url":"https://github.com/codonist","followers_url":"https://api.github.com/users/codonist/followers","following_url":"https://api.github.com/users/codonist/following{/other_user}","gists_url":"https://api.github.com/users/codonist/gists{/gist_id}","starred_url":"https://api.github.com/users/codonist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codonist/subscriptions","organizations_url":"https://api.github.com/users/codonist/orgs","repos_url":"https://api.github.com/users/codonist/repos","events_url":"https://api.github.com/users/codonist/events{/privacy}","received_events_url":"https://api.github.com/users/codonist/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-19T21:36:20Z","updated_at":"2015-07-27T13:41:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/turinggroup/angular-validator/pulls/44","html_url":"https://github.com/turinggroup/angular-validator/pull/44","diff_url":"https://github.com/turinggroup/angular-validator/pull/44.diff","patch_url":"https://github.com/turinggroup/angular-validator/pull/44.patch"},"body":"Hi there, \r\n\r\nI enable invalid-message attribute on form element, so that we do not need to specify invalid-message on each field. The value of invalid-message on form should be an angular service which has a function named `message`. In the message function, customized messages are managed based on $error of specific field. There are no major changes in angular-validator.js. I just add `hasFormInvalidMessage` function and update a little bit `setupWatch` and `updateValidationMessage`. \r\n\r\nThanks. \r\nBest regards"},"comment":{"url":"https://api.github.com/repos/turinggroup/angular-validator/issues/comments/125207461","html_url":"https://github.com/turinggroup/angular-validator/pull/44#issuecomment-125207461","issue_url":"https://api.github.com/repos/turinggroup/angular-validator/issues/44","id":125207461,"user":{"login":"Jakobovski","id":2724082,"avatar_url":"https://avatars.githubusercontent.com/u/2724082?v=3","gravatar_id":"","url":"https://api.github.com/users/Jakobovski","html_url":"https://github.com/Jakobovski","followers_url":"https://api.github.com/users/Jakobovski/followers","following_url":"https://api.github.com/users/Jakobovski/following{/other_user}","gists_url":"https://api.github.com/users/Jakobovski/gists{/gist_id}","starred_url":"https://api.github.com/users/Jakobovski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jakobovski/subscriptions","organizations_url":"https://api.github.com/users/Jakobovski/orgs","repos_url":"https://api.github.com/users/Jakobovski/repos","events_url":"https://api.github.com/users/Jakobovski/events{/privacy}","received_events_url":"https://api.github.com/users/Jakobovski/received_events","type":"User","site_admin":false},"created_at":"2015-07-27T13:41:12Z","updated_at":"2015-07-27T13:41:12Z","body":"Thanks. I have been super busy. I will try to take a look at this in the next few days."}}