ngb-datepicker – cannot read property ‘day’ of undefined

I’ve been struggling with this for a couple of days now, had I had prior knowledge I would have gone for Angular material.

I am trying to implement a date range in an Angular 6 app as shown here:
https://stackblitz.com/angular/pdkqakgrpja?file=app%%2Fdatepicker-range.ts
but the model binding {{ date.day }} is the problem.
Why is date not defined ?

1 possible answer(s) on “ngb-datepicker – cannot read property ‘day’ of undefined