So my component doesn't reload when switching the date back to today's date. It works on any other date.
@Component({
selector: 'scheduler-sc-component',
template: `
<div class="fullscreen">
<sidebar-container #sidebar [(expanded)]="expanded">
<sidebar-expanded>
<div style="padding: 3px;">
<daypilot-navigator [config]="navigatorConfig" [date]="navigatorDate" (dateChange)="dateChange()" #navigator></daypilot-navigator>
</div>
</sidebar-expanded>
<sidebar-collapsed></sidebar-collapsed>
<sidebar-main>
<div class="main-body">
<app-header></app-header>
<daypilot-scheduler [config]="config" [events]="events" (viewChange)="viewChange()" #scheduler></daypilot-scheduler>
<app-footer></app-footer>
<div class="main-bottom"></div>
</div>
</sidebar-main>
</sidebar-container>
</div>
`,
styles: [`
`]
})
dateChange() {
console.log('fire');
this.config.startDate = this.navigator.control.selectionStart;
this.config.days = new DayPilot.Duration(this.navigator.control.selectionStart, this.navigator.control.selectionEnd).totalDays() + 1;
}