12.3.12 • Published 3 years ago

@devtips/ngoffline v12.3.12

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

MyWorkspace

This project was generated with Angular CLI version 12.2.10.

Table of Contents

About

this package used to detect offline and online status and show or hide messages based on network status

Imports

@NgModule({
  declarations: [
    AppComponent,
  ],
  imports: [
    ...
    NgofflineModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Usage

<ngoffline></ngoffline>

The default message is 'You are not connected', but you can change it

<ngoffline message="Custom message"></ngoffline>

You can use directive to display or hide any html selector

<div ngoffline>
  this message will be displayed only if the status is offline
</div>

Network status output return 'false' if the status Offline

<ngoffline (isOnline)="checkNetworkStatus($event)"></ngoffline>

Or in the directive

<div ngoffline (isOnline)="checkNetworkStatus($event)">
  this message will be displayed only if the status is offline
</div>
12.3.12

3 years ago

12.2.12

3 years ago

12.2.11

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago