I want to render 3 videos in a bootstrap row with vue.js.
I need to open <div class="row"> and close this tag each 3 videos in order to wrap the wrap them inside.
I don't know how to do that with vueJS?
html code:
 <div class="container" id="video-list">
        <div v-for="(item, index) in items"><!--how to open this tag only if index%3==0?-->
            <div class="row">
                <div class="col-md-4 col-sm-4 ">
                    <h3>{{item}} {{index}}</h3>
                    <video class="video-js vjs-default-skin vjs-16-9 vjs-big-play-centered" controls
                           preload="auto" width="640" height="264" poster="video-poster.png"
                           data-setup="{}">
                        <source :src="'video/' + item" type='video/mp4'>
                    </video>
                </div>
            </div> <!--how to close this tag only if index%3==0?-->
        </div>
    </div>
js code:
        var videos = new Vue({
            el: '#video-list',
            data: {
                items: JSON.parse(result)
            }
        });
I saw Conditional Rendering instructions but when I apply this to this div class="row" this hide the child tags that contain videos!
In my case, I don't want to manage tag rendering, I need to be able to open/close conditionnaly a tag element.
 
     
     
     
    