I need to set a default date value for date inputs in my forms generated by FormBuilder. When using FormGroup's setValue function, it doesn't work as expected. I was able to make it work by binding ngModel to the datepicker input, but I'm not sure if this is the correct approach.
Here is a Stackblitz demo showcasing the issue: https://stackblitz.com/edit/angular-h45fid
Can anyone advise if there is a proper way to achieve this or if I am missing something?