title: could anyone explain to me how to set date from datepicker
body: <p>I 'm setting up a datepicker in my app and I have a problem, I don't know how to set public date in my ts file from datepicker. 
  The chosen date goes to html view and I can see it and it's ok but it should be added in public date = 
  I don't know how to connect this information with ts file</p>
  
  <p>html file</p>
  
  <pre><code>&lt;mat-form-field class="justify-content-center"&gt;
    &lt;input matInput [matDatepicker]="picker" placeholder="Choose a date"&gt;
    &lt;mat-datepicker-toggle matSuffix [for]="picker"&gt;
      &lt;mat-icon matDatepickerToggleIcon&gt;keyboard_arrow_down&lt;/mat-icon&gt;
    &lt;/mat-datepicker-toggle&gt;
    &lt;mat-datepicker #picker&gt;&lt;/mat-datepicker&gt;
  &lt;/mat-form-field&gt;
  </code></pre>
  
  <p>ts file 
  with a date added rigidly</p>
  
  <pre><code>public date = '2019-05-01';
  </code></pre>