Closed coloz closed 4 years ago
I tested with this https://github.com/kekeh/angular-mydatepicker/tree/master/example/app/date-picker-ngmodel component and it worked ok. That component belongs to the example application.
No date selected => ng-invalid
Date selected => ng-valid
Here https://github.com/kekeh/angular-mydatepicker#development-of-this-component are instructions on how to run test application.
Before run the application add the required attribute to this line https://github.com/kekeh/angular-mydatepicker/blob/master/example/app/date-picker-ngmodel/date-picker-ngmodel.html#L271
Then you can test the case.
in ngForm,add required directive, the mydatepicker always shows ng-invalid class