How to change model structure of angular powered bootstrap ngbDatepicker
问题 I am using angular powered bootstrap ngbDatepicker. I have created my own custom control which will be used in different pages for date capturing as follows. <form-date [label]="'Date of birth'" [name]="'inputCPDDOB'" [(ngModel)]="birthDate" placeholder="mm/dd/yyyy" required > </form-date> Here I have passed birthDate as my model object. I want User should be able to choose the date by clicking the CAL button (beside the text box), User should be able to type a date in format 'MM/DD/YYYY' in