Skip to content

lastModified timestamp being checked by $watch before it's updated after a change #349

Open
@danthemaen

Description

@danthemaen

see the plunkr: http://plnkr.co/edit/43QtwMqtpETvvjy3D3YD?p=preview

The issue
I update some property on some instance. Now I have a $watch on the lastModified of this resource. The $watch checks the lastModified timestamp before it is updated. This results in the first change "event" not being fired at all.

Since bindAll and bindOne works in the same way, it is possible that the first change doesn't fire there as well - I didn't check that one though.

Dirty Workaround
I could just add some delay in the $watch on lastModified and check it again after that delay. This works but is not really statisfying.

I've encountered this issue with chrome on windows and mac - on safari it seems to work fine...

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