I would like to cache some data and I read about Cache Factory, which just caches the data for the current session. But I want to keep my data in cache even after the page was reopened. What is be a better way do that?
You can use LocalStorage
, sessionStorage
or $cookies
service :
https://docs.angularjs.org/api/ngCookies/service/$cookieStore