Questions tagged [angularjs-rootscope]

Every application has a single root scope. All other scopes are descendant scopes of the root scope. Scopes provide separation between the model and the view, via a mechanism for watching the model for changes. They also provide an event emission/broadcast and subscription facility. See the developer guide on scopes.

152 questions
-1
votes
1 answer

AngularJS ng-src does not update using $watch on $rootScope

I am using the $rootScope to get and update an avatar. Now, when the user updates a new avatar, the ng-src of the should also update, showing the new avatar that has just been uploaded. I have realized this by watching the $rootScope.myAvatar in…
DEls
  • 241
  • 3
  • 14
-1
votes
2 answers

AngularJS Best practices to use $rootscope?

I'm a beginner in angular and I try to do this tutorial ( http://sahatyalkabov.com/create-a-tv-show-tracker-using-angularjs-nodejs-and-mongodb/ ) I use the best practices by John Papa. So, i don't use $scope but a variable. var vm = this; on my…
1 2 3
10
11