When using the Flickity service to create an instance inside a UI-Router view's controller, we also need to be destroying it using the $destroy event. The long $timeout delay in FlickityService.destroy() causes issues if switching quickly between pages. This should be ~10x shorter.
When using the Flickity service to create an instance inside a UI-Router view's controller, we also need to be destroying it using the
$destroy
event. The long$timeout
delay inFlickityService.destroy()
causes issues if switching quickly between pages. This should be ~10x shorter.