Currently in my Vue.js application, I have this loop using v-for
:
<div v-for="(word, index) in dictionary">
// break if index > 20
<p>{{word}}</p>
</div>
After rendering 20 words, I want to exit the loop. Is there a way to achieve this functionality? I've checked the official documentation, but couldn't find any relevant information.