Como desativar a data anterior no datepicker usando o 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]);
}
The Codesmith