Angular-calendar: Cannot access dayEvent variable in custom event Template for <mwl-calendar-day-view>

Created on 13 Feb 2021  路  3Comments  路  Source: mattlewis92/angular-calendar

Describe the bug

Cannot access dayEvent variable in custom event Template for <mwl-calendar-day-view>.
Is there something that I'm missing?
Thanks.

Minimal reproduction of the problem with instructions

Please use Stackblitz link below for minimal reproduction of the problem.

Stackblitz

Screenshots

Please refer to screenshot below where it illustrates the issue of dayEvent being undefined.

Screen Shot 2021-02-12 at 3 51 09 PM

Versions

  • @angular/core: 9.1.12 and 8.2.3
  • angular-calendar: 0.28.22
  • Browser name and version: Chrome 88.0.4324.146

Most helpful comment

Hi, you should use weekEvent for day view.

Here is example;

image

All 3 comments

Thanks so much for opening an issue! If you'd like me to give priority to answering your issue or would just like to support this project, then please consider sponsoring me

Hi, you should use weekEvent for day view.

Here is example;

image

That works!
Thanks @Myerden.

Was this page helpful?
0 / 5 - 0 ratings