Merge pull request #113 from kanerogers/patch-2
Add delete example to README.md
This commit is contained in:
commit
1437e35e58
@ -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');
|
||||
}]);
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user