All Projects → VadimDez → ngx-online-status

VadimDez / ngx-online-status

Licence: MIT license
🔛 Angular 5+ Detect online/offline state

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
SCSS
7915 projects

Projects that are alternatives of or similar to ngx-online-status

V Offline
🔌 Simple VueJS component to detect offline & online changes.
Stars: ✭ 307 (+1234.78%)
Mutual labels:  online, offline
Mono-PWA
Monobank PWA — unofficial online web client for monobank
Stars: ✭ 24 (+4.35%)
Mutual labels:  online, offline
Night
Weekly Go Online Meetup via Bilibili|Go 夜读|通过 bilibili 在线直播的方式分享 Go 相关的技术话题,每天大家在微信/telegram/Slack 上及时沟通交流编程技术话题。
Stars: ✭ 10,058 (+43630.43%)
Mutual labels:  online, offline
File-Explorer
A File Manager with stunning design & astonishing develops, beautifully written in PHP, everything fused in a single file.
Stars: ✭ 31 (+34.78%)
Mutual labels:  online, offline
Vue Offline
Offline states and storage for Vue PWA
Stars: ✭ 308 (+1239.13%)
Mutual labels:  online, offline
Data Collection Dotnet
Data collection application built using the .NET Runtime SDK.
Stars: ✭ 17 (-26.09%)
Mutual labels:  online, offline
use-navigator-online
⚛️ React Hooks to detect when your browser is online/offline.
Stars: ✭ 23 (+0%)
Mutual labels:  online, offline
UltimaPHP
A modern Ultima Online server written in PHP
Stars: ✭ 123 (+434.78%)
Mutual labels:  online
react-rxdb-example
Anonymous chat app built with React, RxDB and PouchDB that works offline.
Stars: ✭ 37 (+60.87%)
Mutual labels:  offline
react-state
React-State - Superpowers for managing local and reusable state in React
Stars: ✭ 14 (-39.13%)
Mutual labels:  state
SuperGrate
💾 Get moving with Super Grate; a free & open source Windows Profile Migration & Backup Utility. Super Grate is a GUI (Graphical User Interface) that assists Microsoft's USMT (User State Migration Utility) in performing remote migrations over a network connection.
Stars: ✭ 91 (+295.65%)
Mutual labels:  state
Webview-unity-3d-2017.3-or-higher-
Webview unity 3d 2017.3 or higher - can be open website url on unity3d or open Html5, html and js on unity offline
Stars: ✭ 18 (-21.74%)
Mutual labels:  online
dipa
dipa makes it easy to efficiently delta encode large Rust data structures.
Stars: ✭ 243 (+956.52%)
Mutual labels:  state
react-native-easy-state-view
Fully customizable State View for React Native.
Stars: ✭ 21 (-8.7%)
Mutual labels:  state
ballotnav
A repository for HackforLA's BallotNav project
Stars: ✭ 21 (-8.7%)
Mutual labels:  state
pluralsight-scraper
Pluralsight video downloader
Stars: ✭ 128 (+456.52%)
Mutual labels:  offline
iot-edge-offline-dashboarding
Azure IoT Edge offline dashboarding/reporting sample. Guidance and sample dashboards
Stars: ✭ 31 (+34.78%)
Mutual labels:  offline
mapsplit
A fast way to split OSM data in to a portable tiled format
Stars: ✭ 55 (+139.13%)
Mutual labels:  offline
mapsforge flutter
Offline maps as pure flutter code
Stars: ✭ 30 (+30.43%)
Mutual labels:  offline
SwaggerOfflineDoc
基于SpringBoot和Swagger2生成离线文档:PDF和Html5格式
Stars: ✭ 42 (+82.61%)
Mutual labels:  offline

ngx-online-status

Downloads Build Status https://www.paypal.me/vadimdez

Detect online/offline state

Angular 5+ Module to track online and offline state

Demo

https://vadimdez.github.io/ngx-online-status/

or stackblitz code/demo

https://stackblitz.com/edit/ngx-online-status

Install

npm install ngx-online-status --save

Usage

  1. Import OnlineStatusModule to your module
import { OnlineStatusModule } from 'ngx-online-status';

@NgModule({
  declarations: [
    // ...
  ],
  imports: [
    OnlineStatusModule
  ],
  providers: [
    //...
  ]
})
  1. Inject OnlineStatusService and use it:
import { OnlineStatusService, OnlineStatusType } from "ngx-online-status";

export class AppComponent {
  status: OnlineStatusType = this.onlineStatusService.getStatus(); // get initial status

  constructor(private onlineStatusService: OnlineStatusService) {
    this.onlineStatusService.status.subscribe((status: OnlineStatusType) => {
      // use status
      this.status = status;
    });
  }
}
OnlineStatusType

OnlineStatusType.OFFLINE equals to 0

OnlineStatusType.ONLINE equals to 1

License

MIT © Vadym Yatsyuk

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].