Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229724

Trying to save as Object Array but keeps getting saved as Array of Array

$
0
0

thanks @RezaRahmati had to change save() to

save(data): Promise<any> {

   return this.getData().then((products: any[]) => {
   if (products) {
     products = products.concat(data);
     return this.storage.set('products', products);
   }
   return this.storage.set('products', data);
   });
}

Viewing all articles
Browse latest Browse all 229724

Trending Articles



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