Skip to content

Persistent bindings with objects added to repeater array #158

@ghost

Description

When you add an object to a v-repeat array that has bindings attached to it, the bindings persist. Is this intentional?

Very crude and simplified version of my problem, after adding an item delete some of the text from the input box:

http://jsfiddle.net/FyrY6/2/

I noticed when the object was added to the array it inherited the new bindings and methods from the v-repeat directive (which is awesome), but did not remove its old bindings. Is there a way to destroy the old bindings of an object after it has been added to a repeater array?

edit: updated fiddle link

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