Skip to content

v-repeat can only loop across an object once #613

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

Closed
skomorokh opened this issue Dec 1, 2014 · 0 comments
Closed

v-repeat can only loop across an object once #613

skomorokh opened this issue Dec 1, 2014 · 0 comments

Comments

@skomorokh
Copy link

I'm finding I can't use the same object in a v-repeat more than once in a vm---it has a reference to some flavour of it as it manages to iterate the right number of times but only has access to the properties (or keys) the first time through.

If I nest it in another v-repeat I can use the same object again (once), presumably because it gets a new vm.

By contrast, arrays seem to work every time. Here's a fiddle:

http://jsfiddle.net/zxcn72jf/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants