How does SwiperSlide know it becomes active?

How does <SwiperSlide/> know it becomes active?


Create or get swiper instanse, then set event listener

 this.Swiper = this.$f7.swiper.create('#swiper');            
 this.Swiper.on('slideChange', () => {              

Or pass directly callback to params:

    on: {
      slideChange: onSwiperSlideChange,
function onSwiperSlideChange() {
  const swiper = this; // event handler will be bound to swiper instance

Yeah, but they are in different files. The slide itself should have a onActivate event. onDeactivate as well. Feature Request.

It is difficult to give advice without seeing the code. Try use Event bus