Skip to content

πŸ“‹ App built with Ionic using code from another great tutorial by Simon Grimm of the Ionic Academy

License

Notifications You must be signed in to change notification settings

AndrewJBateman/ionic-angular-csvdata

Repository files navigation

⚑ Ionic Angular Explorer

  • App to open a locally-stored Comma Separated Values (CSV) file and allow it to be modified and saved/shared via a social media plugin if using a mobile or as a xls file if using a PC.
  • This is another great tutorial from Simon Grimm of the IonicAcademy - see πŸ‘ Inspiration below.
  • Note: to open web links in a new window use: ctrl+click on link

GitHub repo size GitHub pull requests GitHub Repo stars GitHub last commit

πŸ“„ Table of contents

πŸ“š General info

  • Includes 'export' button top left to save the file to social media etc.
  • The Cordova-plugin-file plugin implements a File API allowing read/write access to files stored on the device.
  • The cordova-plugin-x-socialsharing shares text, files, images and links via social networks, sms and email.

πŸ“· Screenshots

screenshot

πŸ“Ά Technologies

πŸ’Ύ Setup

  • To start the server on localhost://8100 type: 'ionic serve'
  • To start the server on a mobile using Ionic devapp and connected via wifi, type: 'ionic serve --devapp'
  • The Ionic DevApp was installed on an Android device from the Google Play app store.

πŸ’» Code Examples

  • code from Cordova plugin to open a file on a mobile device file system with its default application
// parse data asynchronously as per papa parse documentation.
this.papa.parse(csvData, {
    complete: parsedData => {
    this.headerRow = parsedData.data.splice(0, 1)[0];
    this.csvData = parsedData.data;
    console.log('data array: ', this.csvData);
    }
});

πŸ†’ Features

  • CSV file access and editing.

πŸ“‹ Status & To-do list

  • Status: Working. Tested using Ionic server and Ionic devapp. Passes linting.
  • To-do: nothing

πŸ‘ Inspiration

πŸ“ License

  • This project is licensed under the terms of the MIT license.

βœ‰οΈ Contact