I'm working on a project where we've recently upgraded from Angular 10 to 14 which appears to have changed the behavior of the calendar - or at least the way the Custom Templates work within it.
Upgrading the angular-calendar from 0.28.28 to 0.30.1 (for Angular 14 support) does not resolve the issue.
We are using a custom header template which includes clickable buttons to redirect the user to a separate List View allowing them view individual items and click through to the actual data.
This is working in production which is currently running Angular 10 and 0.28.28 of the calendar but with our internal builds now running Angular 14 clicking these buttons has no effect.
Investigations indicate that the click handlers are not being wired up during instantiation of the view. However, if I refresh the page via the browser or F5 everything seems to be wired up and the click through works as expected.
I have reviewed the documentation and the examples and have not been able to locate any templates with elements, e.g. buttons, that require separate event handlers so I can't determine whether I need to change our implementation or whether the issue is with the calendar not being fully compatible with Angular 14 for this use case.
In the above markup you can see there are two button elements each having their click handler set to dayCountClicked which is defined in the associated component.ts file.
I'm working on a project where we've recently upgraded from Angular 10 to 14 which appears to have changed the behavior of the calendar - or at least the way the Custom Templates work within it.
Upgrading the angular-calendar from 0.28.28 to 0.30.1 (for Angular 14 support) does not resolve the issue.
We are using a custom header template which includes clickable buttons to redirect the user to a separate List View allowing them view individual items and click through to the actual data.
This is working in production which is currently running Angular 10 and 0.28.28 of the calendar but with our internal builds now running Angular 14 clicking these buttons has no effect.
Investigations indicate that the click handlers are not being wired up during instantiation of the view. However, if I refresh the page via the browser or F5 everything seems to be wired up and the click through works as expected.
I have reviewed the documentation and the examples and have not been able to locate any templates with elements, e.g. buttons, that require separate event handlers so I can't determine whether I need to change our implementation or whether the issue is with the calendar not being fully compatible with Angular 14 for this use case.
This is the markup from the calendar page:
Note that the headerTemplate is being set to the following ng-template which is defined at the top of the same file:
In the above markup you can see there are two button elements each having their click handler set to
dayCountClicked
which is defined in the associated component.ts file.Versions
@angular/core
: 14.2.12angular-calendar
: 0.30.1