Answers for "setitem localstorage angular"

3

angular local storage

localStorage.setItem('dataSource', this.dataSource.length); // setting
console.log(localStorage.getItem('dataSource')); // getting
Posted by: Guest on May-30-2020
2

getitem localstorage

// localStorage--> userName: 'jon'
var userName = localStorage.getItem('userName');
// userName --> jon
Posted by: Guest on June-07-2020

Code answers related to "setitem localstorage angular"

Code answers related to "Javascript"

Browse Popular Code Answers by Language