Closed jstevej closed 3 years ago
I posted this to StackOverflow too. I hope that's not a faux pas.
http://stackoverflow.com/questions/34281341/should-firebaseobject-watch-work-when-offline
Here's a little more info. I did some experiments with using Firebase's set/update vs angularfire's save for putting data into the object, and Firebase's on('value', ...) vs angularfire's $watch for listening for changes.
set/update + on -> works offline set/update + $watch -> works offline $save + on -> works offline $save + $watch -> doesn't work offline
Closing as stale.
See this plnkr for a demo of this issue.
http://plnkr.co/edit/JgrFbS
Expected results: the console messages for the firebaseObject should still show up when offline.