Created
September 14, 2013 20:25
-
-
Save jahanson/6565347 to your computer and use it in GitHub Desktop.
Snippet to watch for when a variable is populated by angularfire.
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('variable', function() { | |
if($scope.variable.length > 0) { | |
// greater than zero, now we can enable input fields and such. | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment