Skip to content

Conversation

@k525245669
Copy link

Hi, i am a Vue coder and i am very happy to find this VsCode extension, it will help me efficiently write Vue code in my daily.
I often write the code like below:

<div v-for="(item, i) in items" :key="i"> {{ item }} </div> 

I think the snippet vfori will useful when the ViewModel without the id attributes.
It's my first time to contribute code in open source , waiting for your reply.

@sdras
Copy link
Owner

sdras commented Apr 2, 2018

Hi! This looks great, I really like it. Thanks for updating the readme as well. The only thing that needs changing is that we should default to item for the key value (you shouldn't use the index, as that might change, so it will cause errors.) Thanks!

@k525245669
Copy link
Author

k525245669 commented Apr 23, 2018

You are so kind to point out my mistake. At the first I can't understand how it will cause errors, and i read the official docs about key, but i still can't understand, until I read this post, thank you for a lot.

@k525245669 k525245669 closed this Apr 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants