Skip to content

Instantly share code, notes, and snippets.

@jahanson
Created September 14, 2013 20:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jahanson/6565347 to your computer and use it in GitHub Desktop.
Save jahanson/6565347 to your computer and use it in GitHub Desktop.
Snippet to watch for when a variable is populated by angularfire.
$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