How can I detect with AngularJS if the app is offline?
angularjs, javascript
Solution
I finally found a JSFiddle that does exactly that: Check if the web application is online. It uses `window.navigator.onLine`.
JSFiddle: http://jsfiddle.net/rommsen/QY8w2/
Source: https://groups.google.com/d/msg/angular/ZncvSVUc9y4/S4jH1e_XgGoJ
Problem
We have many customers in remote areas and lost of connectivity is frequent. How can I detect if the javascript app is offline? Meaning cannot reach the server and load the templates.