I have the following situation: I have a timetable where there are events which repeat every week. When I view the next/previous week, sometimes new events are present for only that week. Sometimes day changes can also happen - e.g. Tuesday’s events can become Wednesday’s events.
I am attempting to animate the changes between weeks.
All of the timetable event elements are absolutely positioned using their top and left properties, which has made things much easier.
So far I have gotten this to mostly work using trackBy and css transitions on the top and left properties. I am also using Angular animations for void => * and * => void to add/remove any timetable events in a visually appealing manner.
I am running into an issue where trackBy does not work when the length of the array changes. So if I have 12 events this week and move to the following week where there are 11 events, the animations don’t work properly because trackBy didn’t bother keeping track of the event IDs.
Is there any way to force trackBy to always run, even if the length of the array is changed?
Thank you