On my page, I have an ion slider for images. Since users will be able to embed videos in my application, I must also add iframes from the video to the same slider. Here's what my code looks like now:
This is my html:
<ion-slide-box ng-if="slider.length > 1"> <ion-slide ng-repeat="item in slider"> <img ng-if="item.image" ng-src="{{ fileServer }}/imagecache/cover/{{ item.image }}" class="cover"> <iframe ng-if="item.video" src="{{ item.video | safeUrl }}"></iframe> </ion-slide> </ion-slide-box>
This only works fine with images, but when I have videos, I cannot slide them, if they occupy 100% of the width that I set in my CSS, I can only slide them if I only move them by the part where the iframe does not take up space in the slider. Since I need the iframe to be 100% wide, I wonder how to make it work?
source share