Skip to content
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

ResponsiveSlides with angular #389

Open
noammazuz opened this issue Aug 16, 2017 · 0 comments
Open

ResponsiveSlides with angular #389

noammazuz opened this issue Aug 16, 2017 · 0 comments

Comments

@noammazuz
Copy link

when I run simple code as that in the controller
$('.banner .slides').responsiveSlides({
auto: false,
pager: true,
nav: true,
pauseControls: true,
prevText: "Previous",
nextText: "Next"
});

its working and i see the slides

but if i"m change route and then return to the slides route, the same command run again
$('.banner .slides').responsiveSlides({
auto: false,
pager: true,
nav: true,
pauseControls: true,
prevText: "Previous",
nextText: "Next"
});

and the slides not working. changing route causing it not work.

I think I need to destroy the plugin and then to initiate it again.

what can I do to resolve it?
I didn't find way to destory the instance to start all over again from fresh

because the problem is the second time I initialize to slides. (first time working good)

anyone know how to handle it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant