angular-connectivity
This library allows you to subscribe to a behavior subject that tracks Internet connectivity.
Usage Example
: void // Keep track of network connectivity and update API if anything was only saved locally thissubscriptions;