0.1.0 • Published 3 years ago

ngx-sand-internet-status v0.1.0

Weekly downloads
13
License
-
Repository
-
Last release
3 years ago

Demo

npm.io

Table of contents

Features

Goto Top

Getting Started

Step 1 : Install the package

NPM

npm install ngx-sand-internet-status

Step 2 : After installation import into your root or feature module

import { NgxInternetStatusModule } from 'ngx-internet-status'

Step 3 : Add NgxInternetStatusModule to the imports of your NgModule

@NgModule({
  imports: [
    ...,
    NgxInternetStatusModule
    
  ],
  ...
})
class YourModule { ... }

Usage

  • Use in your templates to add the default dropdown in your view like below

    Goto Top

API

Input

  • settings:Object - Settings object to change the default configurations.

     settings = {
       type :'banner',
       onlineTitle:'Seems good',
       offlineTitle:'Connection error',
       onlineText:'Hurray! You are back online',
       offlineText:'Oops! Looks like you are offline',
     }

Output

Goto Top

Help Improve

Found a bug or an issue with this? Open a new issue here on GitHub.

Contribute

Please check the Contributing Guidelines before contributing.

This project was generated with Angular CLI version 10.0.5.