We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please see here: https://jsfiddle.net/tys426eq/
If a class has its own iterator, v-for should iterate over this, instead of the object properties
v-for
class Items { [Symbol.iterator]() { return this.all.values(); } }
... <div v-for="item of items"> (or "in")
<div v-for="item of items">
The text was updated successfully, but these errors were encountered:
If I recall correctly this is planned for v3 and may be added in v2 Other issues #5893, #6079 PR: #7171, #8179
Sorry, something went wrong.
This is working since vue 2.6.x
core/v-for: support iterables in v-for (#8179) d40eb9c, closes #8179
No branches or pull requests
What problem does this feature solve?
Please see here:
https://jsfiddle.net/tys426eq/
If a class has its own iterator,
v-for
should iterate over this, instead of the object propertiesWhat does the proposed API look like?
...
<div v-for="item of items">
(or "in")The text was updated successfully, but these errors were encountered: