ngOnInit method

  1. @override
void ngOnInit()

Executed after the first change detection run for a directive.

See OnInit for a full description.

Implementation

@override
void ngOnInit() {
  daysToTodayRange = _createDaysToTodayRange(_defaultNumDays);
  daysToYesterdayRange = _createDaysToYesterdayRange(_defaultNumDays);
  if (model.basic) {
    model.shouldShowPredefinedList = true;
    model.shouldShowCustomDateRangeColumn = false;
  }
}