Top "Rootscope" questions

Every AngularJS application has a single root scope.

Detecting page unload in angularjs

I have a javascript object which I need global to my angularjs application. When the application is about to be …

angularjs global-variables onbeforeunload persist rootscope
how to delete $rootScope variable in angularjs?

In a controller, I had defined $rootScope.tableformate variable to fill data in a popup. After filling popup data $rootScope.…

angularjs rootscope
$digest already in progress when calling $rootScope.$apply() in quick succession

So I have an AngularJS service listening for some events. On the handling of these events I need to call …

angularjs events location rootscope angularjs-digest
How to reset $rootScope?

After user logs out, I need to clean up my $rootScope. I tried $rootScope.$destroy() but that didn't do the …

angularjs rootscope angularjs-rootscope
Why using $rootScope with functions is not recommended?

While am looking into the FEQs of Angularjs I've seen below article: $rootScope exists, but it can be used for …

javascript angularjs rootscope
How do you set $rootScope within Angular Service function?

I'm having trouble setting $rootScope for Angularjs. Below is my function App.controller('Controller', function (UtilityService, $rootScope) { var setSession = function () { $…

angularjs service controller angularjs-scope rootscope
Why is $http.get() undefined in my Angular service?

I'm trying to load some JSON and store it using $rootScope so that it persists between controllers. When I run …

json angularjs service rootscope
angularjs $rootScope.watch not working

I am new to angularjs. I am trying to learn $watch property . Here is my plunker. rootScope.$watch property is …

javascript angularjs plunker rootscope