Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

How do I save ionic array data in a .txt or .json file

$
0
0

@sheldony14 wrote:

I have an array in ionic and I want to if I click a button called ‘save’ that a .txt or .json file should be created where the data in the array should then be saved. How can I achieve this with ionic? I’m very new to Ionic so I’d like to know how I can achieve this.

The array is as followed:.

testnames = [{name : "sheldon", age : "10"}, {name : "Simon", age : "11"}]

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>