angular-local-storage icon indicating copy to clipboard operation
angular-local-storage copied to clipboard

localStorageService.bind doesn't work with objects nested property paths

Open michaelabuckley opened this issue 10 years ago • 1 comments

localStorageService.bind($scope, 'app.settings', $scope.app.settings, 'AppController_settings'); fails to persist changes in the settings object.

Cause: localStorageService.bind uses $scope[property] to look up the value, but property is a path. so it misses sub-key changes. Fixed by my pull-request.

michaelabuckley avatar May 26 '15 19:05 michaelabuckley

+1

portus84 avatar Sep 15 '15 20:09 portus84