Skip to content

Commit

Permalink
Add delete example to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Kane Rogers committed Aug 1, 2014
1 parent d08649f commit 9d050c9
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 9d050c9

Please sign in to comment.