0
votes

I have an app that uses AngularJS and Firebase (with AngularFire API), but I'm getting some problems with the $bindTo service. Sometimes users are loosing data because there is no good connection in my city, our internet is too slow. I was thinking to create an icon in my app that shows the user if its data was updated successfully or not.

How I was thinking to do it? - Watch the object - On data changed, the icon becomes red - When data is saved on Firebase, returns an event that change the icon color to green

How can I do it? Is there a better way to deal with it?

1

1 Answers

2
votes

Check out https://www.firebase.com/docs/web/guide/offline-capabilities.html This gives example of how to check out connection status and event handlers to deal with such situations .