Merge pull request #143 from andion/patch-1

Fixed typo on README's bind example
master
Ariel Mashraki 10 years ago
commit ed422c0476

@ -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;
//...
});