Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
danthemaen opened this issue Feb 5, 2016 · 0 comments

Comments

@danthemaen
Copy link

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant