From db87118a0cd6672ed88dc72184d1492848889a5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Andi=C3=B3n=20Mont=C3=A1ns?= Date: Thu, 9 Oct 2014 18:07:00 +0200 Subject: [PATCH] Fixed typo on bind example Use $scope instead of $rootScope --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; //... });