Skip to content

v-for (val, key, index) object documentation incorrect #517

@g-liu

Description

@g-liu

In the documentation for v-for, it states that we can use the following syntax to iterate over an object:

<div v-for="(val, key, index) in object"></div>

However, I have found that this is not the case. val and key are both undefined, and index turns out to be a value in the object. I can, however, still use {{$key}} and {{$index}} in the v-for.

I am using vue 1.0.28.

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