Created
December 17, 2012 17:12
-
-
Save bholmberg/4319960 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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