Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

saving an array to localstorage

import { LocalService } from './../../../app/local.service'; <--your local service file

constructor(private local: LocalService)

this.yourArray.forEach(p => this.local.save(p));
Source by gist.githubusercontent.com #
 
PREVIOUS NEXT
Tagged: #saving #array #localstorage
ADD COMMENT
Topic
Name
9+8 =