ksachdeva/angular-swiper

Can't pass slides-per-view auto param

Opened this issue · 1 comments

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

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.