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:
Tried this
import Controller from '@ember/controller';
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.
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:
export default class SwiperController extends Controller { myOptions: { parallax: true } }
export default class SwiperController extends Controller { } Controller.extend({ myOptions: { parallax: true } });
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 !