Have you thought about utilizing localStorage in your project?
You may want to check out the following resource on using
Another option is to use a service called $localstorage:
angular.module('angular.localstorage', [])
.factory('$localstorage', ['$window', function ($window) {
return {
set: function (key, value) {
$window.localStorage[key] = value;
},
get: function (key, defaultValue) {
return $window.localStorage[key] || defaultValue;
},
setObject: function (key, value) {
$window.localStorage[key] = JSON.stringify(value);
},
getObject: function (key) {
if ($window.localStorage[key])
return JSON.parse($window.localStorage[key]);
else
return null;
}
}
}])