npm install ngx-sand-internet-status
import { NgxInternetStatusModule } from 'ngx-internet-status'
@NgModule({
imports: [
...,
NgxInternetStatusModule
],
...
})
class YourModule { ... }
import { NgxInternetStatusService } from "ngx-sand-internet-status";
@NgModule({
providers: [
...,
NgxInternetStatusService
],
...
})
class YourModule { ... }
- Use
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',
}
Found a bug or an issue with this? Open a new issue here on GitHub.
Please check the Contributing Guidelines before contributing.
This project was generated with Angular CLI version 10.0.5.