ngx-offline
Installation
To install this library, run:
$ npm install ngx-offline --save
Module Import and usage
Import in your Angular AppModule
:
;;;
Once the module is imported, you can initialize the offline service in your Angular application:
;;;
or use the directives:
You are offline You are online
Development
To generate all *.js
, *.d.ts
and *.metadata.json
files:
$ npm run build
To lint all *.ts
files:
$ npm run lint
License
Apache-2.0 © Mark van Veen