how can I initialize angular version of swiper
inside ng bootstrap modal?
I found that when window resize happens SwiperCore
can find the swiper
inside the modal so I'm firing resize
event after modal is shown. and it works fine. but I want to know the correct way!
also I tried new Swiper('swiper', {navigation: {nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev'}})
after modal is shown and again it worked. but still it seems there is better way to do it. and also i think it needs to destroy swiper instance after modal is hidden and I don't know how...
any idea?
question from:https://stackoverflow.com/questions/66060495/angular-swiper-inside-modal-does-not-work