hop of those help? I am trying to wrap the bootstrap datepicker with an angular directive in addition to the common datepicker this datepicker contains a different dateformat for display and different date format for the ng-model. , btw your original problem is because of
Wrapping ng-bootstrap datepicker in custom component
By : Jeremy
Date : March 29 2020, 07:55 AM
To fix the issue you can do You will need to implement ControlValueAccessor to use [(ngModel)] with your custom-datepicker. You can find plenty of tutorials, try to find one that is not too old (> august 2016 ) as it has changed quite a bit since beta. Then, you need to define how your custom component needs to react, and then bind everything you need to the inner control (in your case, the uib-datepicker).