Closed joshi-anshul closed 3 years ago
Hello @joshi-anshul
You have to use ngModel to set initial date. Set javascript date object or mydate object to ngModel. Here is an example: https://github.com/kekeh/angular-mydatepicker/wiki/initialize-date-model-(single-date-mode)
Check the ngOnInit() method from the example. It shows both of above methods.
Other examples: https://github.com/kekeh/angular-mydatepicker/wiki
@kekeh thanks a lot
Hello @kekeh
Date picker works very good, but I have a silly question :(
How can I set default date in date picker input field?
Thanks