Skip to content

Instantly share code, notes, and snippets.

@codeMagic23
Created June 18, 2015 14:43
Show Gist options
  • Save codeMagic23/c01dc780cce5edca2f7c to your computer and use it in GitHub Desktop.
Save codeMagic23/c01dc780cce5edca2f7c to your computer and use it in GitHub Desktop.
root scope/ctrl different
**In app.js**
$rootScope.loading =
{
isLoading:true,
isDone:true,
};
**in a controller**
console.log('Scope loading: ' + $rootScope.loading.isLoading);
prints
undefined
but
console.log('Scope loading: ' + $rootScope.loading
prints
false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment