From 65ecddfc7612c90ae095e950801d9944c3c04881 Mon Sep 17 00:00:00 2001 From: FelixLC Date: Wed, 20 Aug 2014 17:07:01 +0200 Subject: [PATCH] Readme should read localStorageService.remove(Favorite Sport) instead of .delete (reserved javascript word) --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 04506b4..02fb952 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Installation: bower install angular-local-storage ``` -Example use: +Example use: ```javascript angular.module('yourModule', ['LocalStorageModule']) @@ -21,16 +21,16 @@ angular.module('yourModule', ['LocalStorageModule']) function($scope, localStorageService) { // Start fresh localStorageService.clearAll(); - + // Set a key localStorageService.set('Favorite Sport','Ultimate Frisbee'); - + // Delete a key - localStorageService.delete('Favorite Sport'); + localStorageService.remove('Favorite Sport'); }]); /* -To set the prefix of your localStorage name, you can use the setPrefix method +To set the prefix of your localStorage name, you can use the setPrefix method available on the localStorageServiceProvider */ angular.module('yourModule', ['LocalStorageModule'])