-
Notifications
You must be signed in to change notification settings - Fork 916
Array destructuring in v-for #630
New issue
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
Comments
Ha, it may actually be because of the compiler. The generated code is: var _vm.val = ref[0];
var _vm.key = ref[1]; (which is wrong because of the |
If you need me to test anything, just let me know. |
Yeah, vue-template-es2015-compiler have a bug. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
According to https://github.com/vuejs/vue-loader/blob/v10.0.0/docs/en/features/es2015.md#es2015-in-templates, object destructuring is possible. What about arrays?
Compilation fails for me with:
Relevant: Map.prototype[@@iterator]()
The text was updated successfully, but these errors were encountered: