title: Disable date in mat datepicker conditionally
body: <p>I am using angular material datepicker in an angular 7 project. I want to make the datepicker readonly on some condition. eg. if the date is more than the current date I want to make the datepicker readonly and not let the user to change the date.</p>
  
  <p>I tried this.disableDate = true; and then tried the [readonly] property and also tried the disabled property but it does not work. How can I achieve this?</p>