Reusable Animations
summary
Extracted animations live in a shared file so multiple components can import the same behavior, with a concrete demo of a fade and a grow trigger, a parameterized duration that changes timing from the component, and the use of :enter/:leave with ngIf to attach animations. The demo builds a box that fades or grows on click, shows common trigger‑name registration errors during live coding, and attempts a staggered list animation that proves flaky under the live server restart.
AI-written summary · about








