angular local storage local storage in angaulr

The solution for “angular local storage local storage in angaulr” can be found here. The following code will assist you in solving the problem.

localStorage.setItem(‘dataSource’, this.dataSource.length); // setting
console.log(localStorage.getItem(‘dataSource’)); // gettinglet data = {“Name”,”Naveed”}
var show = localStorage.setItem(“dataSource”,data);
console.log(show);

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

0
inline scripts encapsulated in