0 votes
in Angular by
What is the main difference between localStorage and sessionStorage in Angularjs?

1 Answer

0 votes
by

LocalStorage is the same as SessionStorage but it persists the data even when the browser is closed and reopened(i.e it has no expiration time) whereas in sessionStorage data gets cleared when the page session ends.

...