how to disable previous date in datepicker using angular 6 code example
Example: how to disable previous date in datepicker using angular 6
minDate: Moment;
maxDate: Moment;
ngOnInit() {
const currentYear = moment().year();
this.minDate = moment([currentYear - 1, 0, 1]);
this.maxDate = moment([currentYear + 1, 11, 31]);
}