Skip to content

Commit

Permalink
Merge pull request #113 from kanerogers/patch-2
Browse files Browse the repository at this point in the history
Add delete example to README.md
  • Loading branch information
grevory committed Aug 14, 2014
2 parents a42db53 + 9d050c9 commit 1437e35
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ 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');
}]);

/*
Expand Down

0 comments on commit 1437e35

Please sign in to comment.