Shorthand syntax proposal for v-for
when element being iterated on is unused
#602
DamianGlowala
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Considering a use case where one needs to render a certain amount of same elements which:
... would it make sense to consider a shortand syntax for declaring
v-for
loops which meet the above criteria, which would (additionally to the existing syntax) accept a numeric value as a sole parameter and iterate n times, where n is equal to the passed value? It could look the following way:Benefits:
vue/no-unused-vars
.Beta Was this translation helpful? Give feedback.
All reactions