export const slideInAnimation = trigger("routeAnimations", [
transition("1 <=> 2", [
style({ position: "relative" }),
query(":enter, :leave", [
style({
position: "absolute",
top: 0,
left: 0,
width: "100%"
})
]),
query(":enter", [style({ left: "-100%" })]),
query(":leave", animateChild()),
group([
query(":leave", [animate("300ms ease-out", style({ left: "100%" }))]),
query(":enter", [animate("300ms ease-out", style({ left: "0%" }))])
]),
query(":enter", animateChild())
])
]);
Can any One tell me what I am doing wrong? I literally just copy pasted this from docs it looks so only rout animation is not working rest animation that uses state works just fine this rout I even tried <=> in the trigger but no use the animation just won't work
prepareRoute(outlet: RouterOutlet) {
return outlet.activatedRouteData["animation"];
}