Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
265 views
Welcome To Ask or Share your Answers For Others

1 Answer

Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...