Skip to content

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

Closed
@skomorokh

Description

@skomorokh

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions