ionic2 Angular2 import/export JSON data

What I mean by import/export data and why it needs to be implemented..

1) I want my app to work offline – store data added by user while offline.

2) The data stored in JSON format.

3) I want that JSON data to export in a file and stored in phone memory.

4) Multiple files will be created.

5) When user get internet – the exported file will be imported and that JSON object to be stored in datastore – any server like Firebase.


Please suggest how this could be possible in Ionic2, Angular2.

  • The JSON object to be export in file – while offline.

  • Later that file will be imported and the data to be save over server.

Yet everything is working while online.
Due to large collection of data AngularFire2 like offline library wasn’t working properly.

Please suggest possibilities..

Source: AngularJS



from Angular Questions https://angularquestions.com/2017/10/04/ionic2-angular2-importexport-json-data/
via @lzomedia #developer #freelance #web #lzomedia.com

Comments

Popular posts from this blog

ng-include of inline SVG does not display gradient except in Chrome

Using PHP and MySQL data to generate PDF letters like in MS Word mailmerge functionality - development

ng-show doesn’t work correct with value boolean