These datepickers use custom date adapter and formatter.
The custom NgbDateAdapter
lets you use your own model i.e. the structure of ngModel.
The custom NgbDateParserFormatter
lets you use your own formatter or parser i.e. the date format in input field.
Notice that there are two different services: the NgbDateAdapter
and the NgbDateParserFormatter
.
Model: {{ model1 | json }}
State: {{ c1.status }}
Model: {{ model2 | json }}
State: {{ c2.status }}