Currently using AngularFire with Firebase. Unfortunately, still stuck on Angular 1 :-( I'm curious if there's a method to set up a callback function that triggers every time data is successfully saved in the database.
I am aware of the option to extend $firebaseObject and override $$updated, but this only fires after each local change.
What I really need is a way to determine when the data has been synchronized with the server.
Assuming I have a Firebase object called "obj" and it's bound to the scope:
obj.$bindTo($scope, 'obj')
and in my HTML I have:
<input ng-model="obj">
I want the ability to alter the state of a specific $scope variable based on the status of obj (saving / saved).
Is there a solution for this?