Topic: Angular DatePicker No value accessor Error
Faisal Naveed pro asked 6 years ago
HI,
I used angular date Picker as shown in example but it through this exception ( No value accessor for form control with name: 'mydate')
<mdb-date-picker #datePicker name="mydate" [options]="myDatePickerOptions" [placeholder]="'Selected date'" [(ngModel)]="model"required></mdb-date-picker>
Faisal Naveed pro answered 6 years ago
Thanks Damian,
Yes, Problem solved by just importing MDBBootstrapModules in sub module of main app.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Resolved
Specification of the issue
- ForumUser: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No
Tags
Damian Gemza staff commented 6 years ago
Hello Faisal, Did you imported FormsModule in your app.module.ts file ?Faisal Naveed pro commented 6 years ago
Demian, I have checked, FormsModule is there but giving me same error No value accessor for form control with name: ‘mydate’