Skip to content

Commit 9d050c9

Browse files
author
Kane Rogers
committed
Add delete example to README.md
1 parent d08649f commit 9d050c9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ angular.module('yourModule', ['LocalStorageModule'])
1515
function($scope, localStorageService) {
1616
// Start fresh
1717
localStorageService.clearAll();
18+
19+
// Set a key
1820
localStorageService.set('Favorite Sport','Ultimate Frisbee');
21+
22+
// Delete a key
23+
localStorageService.delete('Favorite Sport');
1924
}]);
2025

2126
/*

0 commit comments

Comments
 (0)