diff --git a/src/material-examples/datepicker-views-selection/datepicker-views-selection-example.ts b/src/material-examples/datepicker-views-selection/datepicker-views-selection-example.ts index d37580087ec..cf4c158ddcf 100644 --- a/src/material-examples/datepicker-views-selection/datepicker-views-selection-example.ts +++ b/src/material-examples/datepicker-views-selection/datepicker-views-selection-example.ts @@ -51,9 +51,9 @@ export class DatepickerViewsSelectionExample { this.date.setValue(ctrlValue); } - chosenMonthHandler(normlizedMonth: Moment, datepicker: MatDatepicker) { + chosenMonthHandler(normalizedMonth: Moment, datepicker: MatDatepicker) { const ctrlValue = this.date.value; - ctrlValue.month(normlizedMonth.month()); + ctrlValue.month(normalizedMonth.month()); this.date.setValue(ctrlValue); datepicker.close(); }