1.0.2 • Published 4 years ago

ionic-network-error-screen v1.0.2

Weekly downloads
1
License
MIT
Repository
gitlab
Last release
4 years ago

ionic-network-error-screen

Ionic network error screen is a customized version for no internet screen in javascript library

Install

bower install https://gitlab.com/tsi-mobile-team/ionic/utilities.git

OR

bower install ionic-internet-error-screen --save

Install - Dependencies

ionic cordova plugin add cordova-plugin-network-information

Dependencies Install Documents

cordova-plugin-network-information

Usage

Load the script files in your application:

<script src='lib/ionic-network-error-screen/network-error-screen.js'></script>

After adding script tag, need to add the element to inside body tag of root file

<detect-network ng-show="networkStatus" network-options="{ 'heading': 'Internet Connectivity Error', 'content': 'Wifi or cellular network unavailable. Try again later' }"></detect-network>

Documentation

Props

NameDescriptionDefaultType
headingYour custom heading here.Internet Connectivity ErrorYour custom heading here.String
contentYour custom content here.Wifi or cellular network unavailable. Try again later.String

Contributing

Pull requests are always welcome! Feel free to open a new GitHub issue for any changes that can be made.