present mydatepicker options are as below: in ts file
myDatePickerOptions: IMyDpOptions = {
// other options...
dateFormat: 'dd-mmm-yyyy',
editableDateField: false,
openSelectorOnInputClick: true,
};
html file:
<my-date-picker
#subjectdob="ngModel"
editableDateField="false"
maxlength="10"
name="subjectdob"
[(ngModel)]="serviceRequestFormDetails.srfSubjectDetails.dateOfBirth"
[options]="myDatePickerOptions"
required
></my-date-picker>
where as in html file i am having multiple date pickers and for only dateofibirth field i want to use disableSince prop got struck here.can any one help me to achieve this?
Create another IMyDpOptions object and extend the common properties using spread operator and add the extra
disableSinceproperty to the variableuse
myDOBDatePickerOptionsfor only thedateofibirthfield