Add delete example to README.md
This commit is contained in:
parent
d08649f426
commit
9d050c9ebe
@ -15,7 +15,12 @@ angular.module('yourModule', ['LocalStorageModule'])
|
|||||||
function($scope, localStorageService) {
|
function($scope, localStorageService) {
|
||||||
// Start fresh
|
// Start fresh
|
||||||
localStorageService.clearAll();
|
localStorageService.clearAll();
|
||||||
|
|
||||||
|
// Set a key
|
||||||
localStorageService.set('Favorite Sport','Ultimate Frisbee');
|
localStorageService.set('Favorite Sport','Ultimate Frisbee');
|
||||||
|
|
||||||
|
// Delete a key
|
||||||
|
localStorageService.delete('Favorite Sport');
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user