-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does ng-lottie destroy the animation after the component is destroyed? #41
Comments
According to my debugging, it doesn't. I ended up attaching a directive of my own that invokes |
@robsman how did your code do it? |
@Snowbases Not OP, but I've had to do the same today, so I hope this helps: You can use ng-lottie's Template: Component:
It would be nice if ng-lottie would do that by itself automatically. I might add a pull request for this in the near future (should be a straight-forward change). |
@Snowbases I basically did the same as @steffinchen, but wrapped it into a directive for reuse.
|
there is a destroy method in the lottie-web library but it is not called anywhere in ng lottie
The text was updated successfully, but these errors were encountered: