angular-storage
Version:
A Storage done right for AngularJS.
16 lines (12 loc) • 364 B
JavaScript
angular.module('angular-storage.cookieStorage', [])
.service('cookieStorage', ["$cookies", function ($cookies) {
this.set = function (what, value) {
return $cookies.put(what, value);
};
this.get = function (what) {
return $cookies.get(what);
};
this.remove = function (what) {
return $cookies.remove(what);
};
}]);