Skip to content

Instantly share code, notes, and snippets.

@bholmberg
Created December 17, 2012 17:12
Show Gist options
  • Save bholmberg/4319960 to your computer and use it in GitHub Desktop.
Save bholmberg/4319960 to your computer and use it in GitHub Desktop.
// normally the ServiceObject would just be assigned to the service injected into the controller
$scope.ServiceObject = {
property1:null,
property2:null
};
// or it could be done this way
$scope.property1 = ServiceObject.property1;
$scope.$watch("ServiceObject", callBack); // wont fire when property1 changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment