{"action":"closed","issue":{"url":"https://api.github.com/repos/angular/material/issues/7858","repository_url":"https://api.github.com/repos/angular/material","labels_url":"https://api.github.com/repos/angular/material/issues/7858/labels{/name}","comments_url":"https://api.github.com/repos/angular/material/issues/7858/comments","events_url":"https://api.github.com/repos/angular/material/issues/7858/events","html_url":"https://github.com/angular/material/issues/7858","id":145442718,"number":7858,"title":"Required dose not work with md-datepicker","user":{"login":"kevinlbatchelor","id":5952444,"avatar_url":"https://avatars.githubusercontent.com/u/5952444?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinlbatchelor","html_url":"https://github.com/kevinlbatchelor","followers_url":"https://api.github.com/users/kevinlbatchelor/followers","following_url":"https://api.github.com/users/kevinlbatchelor/following{/other_user}","gists_url":"https://api.github.com/users/kevinlbatchelor/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinlbatchelor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinlbatchelor/subscriptions","organizations_url":"https://api.github.com/users/kevinlbatchelor/orgs","repos_url":"https://api.github.com/users/kevinlbatchelor/repos","events_url":"https://api.github.com/users/kevinlbatchelor/events{/privacy}","received_events_url":"https://api.github.com/users/kevinlbatchelor/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/angular/material/milestones/49","html_url":"https://github.com/angular/material/milestones/Deprecated","labels_url":"https://api.github.com/repos/angular/material/milestones/49/labels","id":1717295,"number":49,"title":"Deprecated","description":"Issues and PRs that are considered old, stale, deprecated, not-core, or too risky.","creator":{"login":"ThomasBurleson","id":210413,"avatar_url":"https://avatars.githubusercontent.com/u/210413?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasBurleson","html_url":"https://github.com/ThomasBurleson","followers_url":"https://api.github.com/users/ThomasBurleson/followers","following_url":"https://api.github.com/users/ThomasBurleson/following{/other_user}","gists_url":"https://api.github.com/users/ThomasBurleson/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasBurleson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasBurleson/subscriptions","organizations_url":"https://api.github.com/users/ThomasBurleson/orgs","repos_url":"https://api.github.com/users/ThomasBurleson/repos","events_url":"https://api.github.com/users/ThomasBurleson/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasBurleson/received_events","type":"User","site_admin":false},"open_issues":1085,"closed_issues":9,"state":"open","created_at":"2016-04-19T15:37:31Z","updated_at":"2016-04-28T19:28:00Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2016-04-03T01:48:44Z","updated_at":"2016-04-28T19:28:00Z","closed_at":"2016-04-28T19:28:00Z","body":"You should be able add the required attribute to the md-datepicker and have it be  a required field for a form.  This means that:\r\n1. If you click into the field, do not click a date, and click out you should get some styles indicting the fields is dirty, like a red line.\r\n\r\n2. If the field has not been set, then the form should be $invalid and not be submit able \r\n\r\nIn the plunker example I should not be able to submit the form without setting a date.\r\n\r\nhttp://plnkr.co/edit/Cz6yY56zVEFj621cndBz?p=preview"}}