Currently, my app requires an internet connection to operate and pull external API data, I will be adding some syncing/storage and perhaps a network check in the next version.
For now, I have been trying to add a timeout to the data loading pages (), as currently if there is no web connection within the app. The "Please Wait..." just keeps going round with no option to go back. You have to close the app.
I tried adding in a timeout with rxjs imports in the data pages with no joy. Any ideas?
import 'rxjs/add/operator/timeout';
.timeout(8000)
Ideally it would be nice to have a "No internet connection" prompt on Timeout.
Here are the relevant app files http://plnkr.co/edit/NgHH41zsFcfXDyRApAXx?p=catalogue