Created
January 28, 2015 14:02
-
-
Save TheLarkInn/e7920916e3787d0de0f2 to your computer and use it in GitHub Desktop.
Example of Using $scope.$watch to watch the evaluative value of a function
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
$scope.$watch( | |
function () { return obj.hasOwnProperty("choice") }, | |
function (newLocation, oldLocation) { | |
//Do things here. | |
} | |
); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment