Ember-Swiper / ember-cli-swiper

Swiper-Wrapper for ember
https://ember-swiper.github.io/ember-cli-swiper/
MIT License
72 stars 75 forks source link

Screen breakpoints for slidesPerView #131

Open GuzlejM opened 3 years ago

GuzlejM commented 3 years ago

Hello, I've been trying to find some solutions how to make slidesPerView change number of slides on different screens. I didn't find anything, It looks like I should have used //controller.

I created controller with same name as the component name and did this:


  1. Tried this import Controller from '@ember/controller';

export default class SwiperController extends Controller { myOptions: { parallax: true } }


  1. Tried this and this actually make sense import Controller from '@ember/controller';

export default class SwiperController extends Controller { } Controller.extend({ myOptions: { parallax: true } });


  1. And tried aswell this import Controller from '@ember/controller';

export default class SwiperController extends Controller { Controller.extend({ myOptions: { parallax: true } }); } With all 3 cases i tried to call {{swiper-container options=myOptions}} but it didn't do nothing. I'm not sure what I'm doing wrong any help would help, thank you.

Martin

PS: Love this addon thank you for creating it !