Topic: Angular DatePicker No value accessor Error
Faisal Naveed pro asked 5 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 5 years ago
Yes, Problem solved by just importing MDBBootstrapModules in sub module of main app.
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Specification of the issue
- User: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No
Damian Gemza staff commented 5 years agoHello Faisal, Did you imported FormsModule in your app.module.ts file ?
Faisal Naveed pro commented 5 years agoDemian, I have checked, FormsModule is there but giving me same error No value accessor for form control with name: ‘mydate’