diff --git a/README.md b/README.md index 5102e44..0d6ad62 100644 --- a/README.md +++ b/README.md @@ -220,10 +220,10 @@ Bind $scope key to localStorageService. myApp.controller('MainCtrl', function($scope, localStorageService) { //... localStorageService.set('property', 'oldValue'); - localStorageService.bind($rootScope, 'property'); + localStorageService.bind($scope, 'property'); //Test Changes - $rootScope.property = 'newValue'; + $scope.property = 'newValue'; console.log(localStorageService.get('property')) // newValue; //... });