Home > $rootScope

What is $rootScope in angular js?

An AngularJS application has a single $rootScope. All the other $scope objects are child objects. The properties and methods attached to $rootScope will be available to all the controllers. The following example demonstrates the $rootScope and $scope object. [crayon-69f95b8b2588a402570364/] and the output looks like  [crayon-69f95b8b25892988179236/] Drop comment if you have any query. :)

This Article is TAGGED in , . Read more