angularjs - How to check if Firebase updated remotely? -


i have app uses angularjs , firebase (with angularfire api), i'm getting problems $bindto service. users loosing data because there no connection in city, our internet slow. thinking create icon in app shows user if data updated or not.

how thinking it? - watch object - on data changed, icon becomes red - when data saved on firebase, returns event change icon color green

how can it? there better way deal it?

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


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -