ng-dynamic-forms
ng-dynamic-forms copied to clipboard
ui-ng-bootstap ngbDatepicker value should convert to {day, month, number} interface
I'm submitting a...
[x ] Bug
[ ] Feature Request / Proposal
[ ] Question
I'm using...
NG Dynamic Forms Version:
"@ng-dynamic-forms/core": "^1.4.34",
"@ng-dynamic-forms/ui-ng-bootstrap": "^1.4.34",
[ ] Basic UI
[ ] Bootstrap UI
[ ] Foundation UI
[ ] Ionic UI
[ ] Kendo UI
[ ] Material
[x ] NG Bootstrap
[ ] Prime NG
Description
When using ng-bootstrap ui library ngbDatepicker component expects as [startDate] a type NgbDateStruct that is an interface with {day: number, month: number, year: number} but current implementation only supports string | Date | null making impossible to initialize the start date on the component.
Could be possible to add a converter function or a pipe to transform the value from string and Date to NgbDateStruct: {day: number, month: number, year: number} in DynamicNGBootstrapFormControlComponent ?
@lecnierfreeman Hi! Thanks for reporting this!
There'll be a fix available in 5.0.0 as soon as Angular 5 stable is released.