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

Can't pass slides-per-view auto param #56

Open
varias-xumak opened this issue Nov 21, 2016 · 1 comment
Open

Can't pass slides-per-view auto param #56

varias-xumak opened this issue Nov 21, 2016 · 1 comment

Comments

@varias-xumak
Copy link

When I try to pass slides-per-view param with value "auto" I get the default "1" because there is an "=" on the directive scope param.
https://github.com/ksachdeva/angular-swiper/blob/master/src/angular-swiper.js#L31

@ttrepka
Copy link

ttrepka commented May 18, 2017

I was also struggling to make this work, it turns out you just have to wrap your value in quotes like <ks-swiper-container slides-per-view="'auto'"> because of the two-way binding on the attribute.

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

2 participants