I am creating a frontend app for learning purposes and I encountered a problem I don't quite understand how to solve.
Basically animation routing works properly on "same level" routes (parent -> parent), child -> (another child in the same parent route) but when I switch route to another parent, child route is not animating off (not doing it's :leave animation) and just leaving the dom instantly (https://streamable.com/co0gs - example - first showing animations between child routes and showing problem when clicking "Kalendarz" route).
I believe my problem is me not understanding animation queries properly but if you just point me in the right direction I will hopefully solve this problem on my own :)
Here are some files for your convenience:
Project repo: https://github.com/Micozus/Pawganiser-front/
Animation file: https://github.com/Micozus/Pawganiser-front/blob/master/src/app/animations/animations.ts
Routes module: https://github.com/Micozus/Pawganiser-front/blob/master/src/app/app-routing.module.ts
Parent route component: https://github.com/Micozus/Pawganiser-front/blob/master/src/app/app.component.html
Child routes component: https://github.com/Micozus/Pawganiser-front/blob/master/src/app/main-functions/my-pets/my-pets.component.html