Topic: Date picker with reactive forms?
ngModel
not formControlName
. Rafał Rogulski answered 7 years ago
ocera002 answered 7 years ago
BruceVWilcox pro answered 5 years ago
It is January 2020 and data binding still does not work when I try to use mdb-date-picker in a reactive form. The documentation at 'https://mdbootstrap.com/docs/angular/forms/date-picker/' is silent on the subject. IMO the documentation should either (1) affirmatively indicate it does not work for reactive forms or (2) provide an example of how to make it work. Thank you.
Arkadiusz Idzikowski staff answered 5 years ago
There is an information about how to use the reactive forms with reactive forms in our documentation. Please take a look at the second example in this section (if you don't want to set default value, just remove the value from FormControl
): https://mdbootstrap.com/docs/angular/forms/date-picker/#default-value
In case of any further problems please provide some more details.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No