We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d08649f + 12c8104 commit 2c57fdfCopy full SHA for 2c57fdf
README.md
@@ -27,6 +27,20 @@ angular.module('yourModule', ['LocalStorageModule'])
27
localStorageServiceProvider.setPrefix('newPrefix');
28
}]);
29
```
30
+
31
+#### How to bind to a $scope variable:
32
+Usage: localStorageService.bind(scope, key, def);
33
+```
34
+// Example
35
+$scope.anArtist = {'firstname':'Pablo', 'lastname':'Picasso'};
36
37
+// Bind to local storage service
38
+localStorageService.bind($scope, 'anArtist', anArtist);
39
40
+// get bound data:
41
+console.log(localStorageService.get('anArtist'));
42
43
44
Check out the full demo and documentation at http://gregpike.net/demos/angular-local-storage/demo.html
45
46
To do:
0 commit comments