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.
1 parent d08649f commit 12c8104Copy full SHA for 12c8104
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