Created
November 11, 2019 09:14
-
-
Save richardokonicha/707254c7f62a2ab1ac7a3fcf4075bbe6 to your computer and use it in GitHub Desktop.
A vue js component to demostrate the power of v-for and flex box. Try adding another "0" in 100 and watch it crash your pc.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<v-container> | |
<v-row v-for="j in 100" :key="j" :class="j === 1 ? '' : 'mt-6'" no-gutters> | |
<v-col v-for="i in j + 1" :key="i"> | |
<v-card class="pa-5" outlined> | |
{{ i }} of {{j + 1 }} | |
</v-card> | |
</v-col> | |
</v-row> | |
</v-container> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment