ngOnInit method
Executed after the first change detection run for a directive.
See OnInit
for a full description.
Implementation
@override
void ngOnInit() {
_calendarStream = _model.stream.listen(_onCalendarChange);
if (_mode == CalendarSelectionMode.SINGLE_DATE) {
_inputListener = CalendarListener.singleDate(_model);
} else if (_mode == CalendarSelectionMode.DATE_RANGE) {
// TODO(google): Add support for movingStartMaintainsLength==false if
// we see use cases for month range picking.
_inputListener =
CalendarListener.dateRange(_model, movingStartMaintainsLength: true);
}
}