bougarfaoui / ui-carousel

🎨 Angular carousel Component 🔥
https://bougarfaoui.github.io/ui-carousel/
MIT License
79 stars 53 forks source link

Issue with autoPlay #4

Open juancamilov06 opened 6 years ago

juancamilov06 commented 6 years ago

When i navigate from the component that contains ui-carousel to another one, using router i get the following error.

ObjectUnsubscribedError {name: "ObjectUnsubscribedError", stack: "ObjectUnsubscribedError: object unsubscribed↵ a…ernal:///../../../../zone.js/dist/zone.js:485:48)", message: "object unsubscribed"} message : "object unsubscribed" name : "ObjectUnsubscribedError"

SOLUTION

Disabling the autoPlay option [autoPlay]='false' works, but, what if i need this option to be enabled? I think that some observable is not handled in a good way in the ngOnDestroy lifecycle hook

msarsha commented 6 years ago

3 should fix it.

Muthukumaruma commented 6 years ago

I updated the packege but still i am facing the same issue

Muthukumaruma commented 6 years ago

Thanks, its works, before i forgot to uninstall the ui-carousel

msamprz commented 6 years ago

No problem, good luck. Btw you wrote this in the wrong thread.