You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Devs should be able to $watch two different meta properties of objects in the store to stay up-to-date with the latest version of those objects.
lastSaved - A timestamp of the last time an object was saved via an async adapter lastModified - A timestamp of the last time any of the properties on an object changed
In the above example the document on the $scope is only updated when the object is saved to the server. This is useful when you don't want the data binding in a form updating the object all over the screen when the user hasn't clicked the save button yet.
because internally angular-data would use Object.observe if available, else its own digest loop that performs dirty checking just like Angular. Maybe devs should be able to throttle this digest loop as well.
This digest loop would be kicked off whenever $rootScope's digest loop runs. Maybe it can be configured to run on an interval.
The text was updated successfully, but these errors were encountered:
Devs should be able to
$watch
two different meta properties of objects in the store to stay up-to-date with the latest version of those objects.lastSaved
- A timestamp of the last time an object was saved via an async adapterlastModified
- A timestamp of the last time any of the properties on an object changedExamples:
In the above example the document on the $scope is only updated when the object is saved to the server. This is useful when you don't want the data binding in a form updating the object all over the screen when the user hasn't clicked the save button yet.
The above example would be more efficient than the following:
because internally angular-data would use
Object.observe
if available, else its own digest loop that performs dirty checking just like Angular. Maybe devs should be able to throttle this digest loop as well.This digest loop would be kicked off whenever
$rootScope
's digest loop runs. Maybe it can be configured to run on an interval.The text was updated successfully, but these errors were encountered: