Topic: Date picker with reactive forms?
Andrew pro asked 7 years ago
ngModel
not formControlName
.
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.
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.
stalis pro answered 7 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Pro
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: Yes
- Provided link: No