Created
December 29, 2015 20:13
-
-
Save armincifuentes/922cb919b465dc2c7f87 to your computer and use it in GitHub Desktop.
Angular Watcher syntax
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 variable; | |
}, function(newValue, oldValue) { | |
// do things | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment