I have array existing data. how to disable existing data when picking date from ngbdatepicker?
here's my disable code from past date
var current = new Date();
current.setDate(current.getDate());
this.minDates = {
year: current.getFullYear(),
month: current.getMonth() + 1,
day: current.getDate(),
};
this is my code for existing dates array
var avDateArray = [];
for(var i=0;i<this.tmpResponse[0].available_date.length;i++){
avDateArray.push(this.tmpResponse[0].available_date[i].start_date);
}
what i confuse is how to disable date from existingdates array in ngbdatepicker in angular?