Skip to content

Instantly share code, notes, and snippets.

@thekarel
Created October 25, 2013 15:58
Show Gist options
  • Save thekarel/7156991 to your computer and use it in GitHub Desktop.
Save thekarel/7156991 to your computer and use it in GitHub Desktop.
Angular - watch a whole object
$scope.$watch(function() {return $scope.bookingData;}, function() {
console && console.log(1);
Storage.set(CFG.cfg.cookies.bookingflow.name, $scope.bookingData);
}, true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment