Skip to content

Problem with observeAll and path() #289

Closed
@mcartmel

Description

Hi,

Just wondering if there is a simple explanation for this behaviour.

I have a simple recursive template with nested arrays and I'm using observeAll to monitor changes to the data. When I set the value of a nested array item, observeAll fires as expected, but the path() shows the index as "[-1]".

jsfiddle example

Perhaps there is another way to do this?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions