1.0.2 • Published 3 years ago

angular-connectivity v1.0.2

Weekly downloads
15
License
-
Repository
github
Last release
3 years ago

angular-connectivity

This library allows you to subscribe to a behavior subject that tracks Internet connectivity.

Usage Example

    ngOnInit(): void {
        // Keep track of network connectivity and update API if anything was only saved locally
        this.subscriptions.push(this.connectivityService.isConnected$.subscribe(isConnected => {
            this.isConnected = isConnected;
            if (isConnected) {
                // Do something
            } else {
                // Do something else
            }
        }));
    }
1.0.2

3 years ago

1.0.1

4 years ago

1.0.0

5 years ago

0.0.1

5 years ago