diff --git a/demo/demo.html b/demo/demo.html index 17f42db..6f6fb7b 100644 --- a/demo/demo.html +++ b/demo/demo.html @@ -87,7 +87,7 @@ var YourCtrl = function($scope, localStorageService, ...) { // Removes all local storage localStorageService.clearAll(); // You can also play with cookies the same way - localStorageService.cookie.add('localStorageKey','I am a cookie value now'); + localStorageService.cookie.set('localStorageKey','I am a cookie value now'); }

API Access

@@ -109,7 +109,7 @@ var YourCtrl = function($scope, localStorageService, ...) { Boolean for success - add + set key, value Adds a key-value pair to the browser local storage Boolean for success @@ -134,7 +134,7 @@ var YourCtrl = function($scope, localStorageService, ...) { cookie - add | get | remove | clearAll + set | get | remove | clearAll Each function within cookie uses the same arguments as the coresponding local storage functions n/a