{"action":"created","issue":{"url":"https://api.github.com/repos/daviddt/angular2-form-validation-example/issues/1","labels_url":"https://api.github.com/repos/daviddt/angular2-form-validation-example/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/daviddt/angular2-form-validation-example/issues/1/comments","events_url":"https://api.github.com/repos/daviddt/angular2-form-validation-example/issues/1/events","html_url":"https://github.com/daviddt/angular2-form-validation-example/issues/1","id":125121233,"number":1,"title":"I had to change fail on resolve as well to get Promise to work","user":{"login":"born2net","id":5090936,"avatar_url":"https://avatars.githubusercontent.com/u/5090936?v=3","gravatar_id":"","url":"https://api.github.com/users/born2net","html_url":"https://github.com/born2net","followers_url":"https://api.github.com/users/born2net/followers","following_url":"https://api.github.com/users/born2net/following{/other_user}","gists_url":"https://api.github.com/users/born2net/gists{/gist_id}","starred_url":"https://api.github.com/users/born2net/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/born2net/subscriptions","organizations_url":"https://api.github.com/users/born2net/orgs","repos_url":"https://api.github.com/users/born2net/repos","events_url":"https://api.github.com/users/born2net/events{/privacy}","received_events_url":"https://api.github.com/users/born2net/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-06T06:32:04Z","updated_at":"2016-01-06T06:49:00Z","closed_at":null,"body":"```\r\nexport default function NameTakenValidator(control:Control):Promise<ValidationResult> {\r\n    let q = new Promise((resolve, reject) => {\r\n        setTimeout(() => {\r\n            if (control.value === 'Sean') {\r\n                resolve({\"taken\": true});\r\n            } else {\r\n                resolve(null);\r\n            }\r\n        }, 1000)\r\n    });\r\n    return q;\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/daviddt/angular2-form-validation-example/issues/comments/169250449","html_url":"https://github.com/daviddt/angular2-form-validation-example/issues/1#issuecomment-169250449","issue_url":"https://api.github.com/repos/daviddt/angular2-form-validation-example/issues/1","id":169250449,"user":{"login":"born2net","id":5090936,"avatar_url":"https://avatars.githubusercontent.com/u/5090936?v=3","gravatar_id":"","url":"https://api.github.com/users/born2net","html_url":"https://github.com/born2net","followers_url":"https://api.github.com/users/born2net/followers","following_url":"https://api.github.com/users/born2net/following{/other_user}","gists_url":"https://api.github.com/users/born2net/gists{/gist_id}","starred_url":"https://api.github.com/users/born2net/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/born2net/subscriptions","organizations_url":"https://api.github.com/users/born2net/orgs","repos_url":"https://api.github.com/users/born2net/repos","events_url":"https://api.github.com/users/born2net/events{/privacy}","received_events_url":"https://api.github.com/users/born2net/received_events","type":"User","site_admin":false},"created_at":"2016-01-06T06:49:00Z","updated_at":"2016-01-06T06:49:00Z","body":"by the way if you want to see a massive ng2 app check out: http://ng2.javascriptninja.io"}}