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"}]
.