I\'m building a small application in Vuejs 2.0 I\'m having approx 15 iterating elements I want to limit the v-for for only 5 elements and can have
Vuejs 2.0
v-for
You can try this code
You will only have 5 elements in the new array.
Update: Tiny change that makes this solution work with both arrays and objects