ksachdeva / angular-swiper

Angular directive for nolimits4web/Swiper
Apache License 2.0
197 stars 94 forks source link

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

Open varias-xumak opened 7 years ago

varias-xumak commented 7 years ago

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 commented 7 years ago

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.