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>

Damian Gemza staff commented 5 years ago

Hello Faisal, Did you imported FormsModule in your app.module.ts file ?

Faisal Naveed pro commented 5 years ago

Demian, I have checked, FormsModule is there but giving me same error No value accessor for form control with name: ‘mydate’

Faisal Naveed pro answered 5 years ago

Thanks Damian,

Yes, Problem solved by just importing MDBBootstrapModules in sub module of main app.


Please insert min. 20 characters.


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