Posts

Showing posts from September, 2019

Recent

Mat Date Picker set Default value, Previous Sunday and Saturday

https://stackblitz.com/edit/ng-mat-date-value-binding-kk-12?embed=1&file=app/datepicker-value-example.html&view=preview < mat-form-field >    < input   matInput  [ matDatepicker ] = "picker3"   placeholder = "Value binding"  [ value ] = "startDate.value" >    < mat-datepicker-toggle   matSuffix  [ for ] = "picker3" ></ mat-datepicker-toggle >    < mat-datepicker  # picker3 ></ mat-datepicker > </ mat-form-field > < mat-form-field >    < input   matInput  [ matDatepicker ] = "picker4"   placeholder = "Value binding"  [ value ] = "endDate.value" >    < mat-datepicker-toggle   matSuffix  [ for ] = "picker4" ></ mat-datepicker-toggle >    < mat-datepicker  # picker4 ></ mat-datepicker > </ mat-form-field > import   {   Component   }   from   "@angular/core" ; import   {   FormControl   }   from   "@angular