{"action":"created","issue":{"url":"https://api.github.com/repos/huei90/angular-validation/issues/98","labels_url":"https://api.github.com/repos/huei90/angular-validation/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/huei90/angular-validation/issues/98/comments","events_url":"https://api.github.com/repos/huei90/angular-validation/issues/98/events","html_url":"https://github.com/huei90/angular-validation/pull/98","id":62752602,"number":98,"title":"Allow passing of a parameter to validation rule and added min and max length rules","user":{"login":"lopsided","id":1258160,"avatar_url":"https://avatars.githubusercontent.com/u/1258160?v=3","gravatar_id":"","url":"https://api.github.com/users/lopsided","html_url":"https://github.com/lopsided","followers_url":"https://api.github.com/users/lopsided/followers","following_url":"https://api.github.com/users/lopsided/following{/other_user}","gists_url":"https://api.github.com/users/lopsided/gists{/gist_id}","starred_url":"https://api.github.com/users/lopsided/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lopsided/subscriptions","organizations_url":"https://api.github.com/users/lopsided/orgs","repos_url":"https://api.github.com/users/lopsided/repos","events_url":"https://api.github.com/users/lopsided/events{/privacy}","received_events_url":"https://api.github.com/users/lopsided/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-18T17:41:35Z","updated_at":"2015-03-19T01:35:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/huei90/angular-validation/pulls/98","html_url":"https://github.com/huei90/angular-validation/pull/98","diff_url":"https://github.com/huei90/angular-validation/pull/98.diff","patch_url":"https://github.com/huei90/angular-validation/pull/98.patch"},"body":"As per title. This allows you to set rules like:\r\n\r\n```\r\n<input validator=\"required, minlength=6\">\r\n````\r\n\r\nThe `6` is extracted and passed as a parameter to the validator. I have added `minlength` and `maxlength` to the default rules but this will work for any custom expression too.\r\n\r\nIf you want to merge this let me know and I'll update the docs.\r\n\r\nCheers"},"comment":{"url":"https://api.github.com/repos/huei90/angular-validation/issues/comments/83251802","html_url":"https://github.com/huei90/angular-validation/pull/98#issuecomment-83251802","issue_url":"https://api.github.com/repos/huei90/angular-validation/issues/98","id":83251802,"user":{"login":"huei90","id":2560096,"avatar_url":"https://avatars.githubusercontent.com/u/2560096?v=3","gravatar_id":"","url":"https://api.github.com/users/huei90","html_url":"https://github.com/huei90","followers_url":"https://api.github.com/users/huei90/followers","following_url":"https://api.github.com/users/huei90/following{/other_user}","gists_url":"https://api.github.com/users/huei90/gists{/gist_id}","starred_url":"https://api.github.com/users/huei90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huei90/subscriptions","organizations_url":"https://api.github.com/users/huei90/orgs","repos_url":"https://api.github.com/users/huei90/repos","events_url":"https://api.github.com/users/huei90/events{/privacy}","received_events_url":"https://api.github.com/users/huei90/received_events","type":"User","site_admin":false},"created_at":"2015-03-19T01:35:26Z","updated_at":"2015-03-19T01:35:26Z","body":"Cool! It's looks nice. Waiting for you doc :beers: "}}