Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to start v-for on a specific index



<script src="https://unpkg.com/vue@2.4.2/dist/vue.min.js"></script>
<script>
new Vue({
  el: '#app',
  data: {
    items: [
      'aaa',
      'bbb',
      'ccc',
      'ddd',
      'eee',
      'fff'
    ]
  }
})
</script>

<div id="app">
  <ul>
    <li v-for="item in items.slice(2)">{{ item }}</li>
  </ul>
</div>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #start #specific #index
ADD COMMENT
Topic
Name
5+7 =