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 ?
THANKS TO A TYPO:
https://ng-bootstrap.github.io/#/components/datepicker/examples
THIS HAS COST ME TWO DAYS OF DEVELOPMENT TIME 🙁
The html IS NOT:
<ng-template #t let-date let-focused=”focused”>
It is:
<ng-template #t let-date = date let-focused=”focused”>