title: How to Store Array Data Using Ionic Native Storage?
body: <p>I'm planning to use ionic native storage to store some translation history, whenever there's a word being translated. The translation action (date, translate word) will be store in the ionic native storage, and when I open history page, a list of translation history will be shown.</p>
  
  <p>Here's the most basic code I got from the ionic official website:</p>
  
  <pre><code>export class HomePage {
    DataArray: Array&lt;string&gt; = [];
  
    constructor(public navCtrl: NavController, private storage: Storage) {
  
    }
    // set a key/value
    setData(){
    this.storage.set('age', 'Max');
    }
    // Or to get a key/value pair
    getData(){
    this.storage.get('age').then((val) =&gt; {
      console.log('Your age is', val);
    });
  }
  }
  </code></pre>