Difference between changing input of Angular component inside and outside a component...

Discussão em 'Angular' iniciado por argentum4k, Novembro 16, 2024.

  1. argentum4k

    argentum4k Guest

    I made an accordion component (angular18) with lazy loading of it's body content and smooth animation of opening and closing. So it works pretty well when i toggle it from inside (by clicking on header), but when i toggle it from outside - it doesn't open smoothly (but closes smoothly).

    Here's the stackblitz: https://stackblitz.com/edit/stackblitz-starters-rjsmkv

    What's the point of this behavior? i'm quite new to Angular animations..

    tried to replace model with input - same thing. Css animations with maxheight are not good enough because of different content sizes.

    Continue reading...

Compartilhe esta Página