Created
March 5, 2017 13:35
-
-
Save seven-cd/c2e8bb4ac9e675567095e15cfb85f754 to your computer and use it in GitHub Desktop.
AngularJs - One Time Watcher
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
var configWatcher = $scope.$watch(function() { | |
return config.game; | |
}, function(current) { | |
if (current) { | |
vm.ready = true; | |
configWatcher(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment