viewDateChange fired before viewDate is updated
See original GitHub issuechanging the order of these yeilds the wrong date
<div
class="btn btn-primary"
mwlCalendarPreviousView
(viewDateChange)="fetchEvents()"
[(viewDate)]="viewDate"
[view]="view"
>
Previous
</div>
Hit next and check console log
https://stackblitz.com/edit/angular-kcqaxw?file=demo%2Fcomponent.ts
Screenshots
Versions
"angular-calendar": "0.28.1",
"angular-calendar": "0.28.1",
chrome 79
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Listener for "date change" in FullCalendar? - Stack Overflow
Is there any way to attach a listener to FullCalendar that will be fired whenever the currently viewed date is changed, ...
Read more >@fullcalendar/interaction | Yarn - Package Manager
FullCalendar Interaction Plugin. Calendar functionality for event drag-n-drop, event resizing, date clicking, and date selecting ...
Read more >PeopleSoft 9.2: Staffing Front Office - Oracle Help Center
Pages Used to Enter Data to Create New Applicant Records. ... Use the Change Dates/View History page (FO_ASGN_CHANGE_DT) to view date change information....
Read more >angular-calendar - UNPKG
appendToBody\n );\n // keep re-positioning the tooltip until the arrow position ... Called when the view date is changed\n */\n @Output() viewDateChange: ...
Read more >Source of CHANGELOG.md - scheduler - Bitbucket
fix recurring event expansion when event starts before view and has ... can force the calendar to fetch events on every view/date change...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is just how angular works, there’s nothing I can do my end to fix this. Another possible workaround is to do
(viewDateChange)="fetchEvents($event)"
where $event will contain the new dateYou can then de-sugar it yourself.