项目作者: hectorromerodev

项目描述 :
With this app I will learn to do an app with the option offline mode and store the data on the local storage.
高级语言: TypeScript
项目地址: git://github.com/hectorromerodev/offlineMode.git
创建时间: 2020-07-20T18:24:36Z
项目社区:https://github.com/hectorromerodev/offlineMode

开源协议:

下载


NETWORK OFFLINE API SERVICE

With this app I will learn to do an app with the option offline mode and store the data on the local storage.

Steps to start

  1. ionic start networkOffline blank —type=angular
  2. ionic g service services/api
  3. ionic g service services/network
  4. ionic g service services/offlineManager
  5. npm install cordova-plugin-network-information
  6. npm install @ionic-native/network
  7. npm install cordova-sqlite-storage
  8. npm install @ionic-native/sqlite
  9. npm install @ionic/storage
  10. ionic cap sync
  11. Add IonicStorageModule.forRoot() adn HttpClientModule import in app.module.ts
  12. Add Network provider in app.module.ts