Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
232 views

I am gradually migrating a rather large AngularJS app to Angular 11. Until now I have successfully re-written the sign-in / sign-up pages in Angular 11 and the AngularJS app is lazy loaded after ...
dimlucas's user avatar
  • 5,141
0 votes
1 answer
90 views

i am using $rootScope to share my values. please check my code user controller (user.js) var app = angular.module('myApp', []); app.controller('user', function($scope,$rootScope) { $rootScope.test ...
kumara's user avatar
  • 937
-1 votes
1 answer
446 views

Having a controller, MyCtrl: class MyCtrl { constructor($scope, $rootScope, ...) { this.$scope = $scope; this.$rootScope = $rootScope; this.doThis = _debounce(this.resize....
Leo Messi's user avatar
  • 6,390
1 vote
2 answers
52 views

I have a directive that contains in his controller a watcher like: $rootScope.$on('broad1', (event, args) => { doSomething() }); Then, I reload (with $state.go) a part of my page that ...
Mika's user avatar
  • 13
0 votes
2 answers
56 views

So I'm basically trying to get a property from my $rootScope when the page loads. I need this property so I can display the value in my form. After testing this: console.log("DEBUG $rootScope", $...
Jordec's user avatar
  • 1,564
0 votes
1 answer
2k views

Our team is developing an application in ServiceNow. We have a recordWatch on a widget that updates dynamically, but we also want to use rootscope to broadcast data to another widget and have ...
Dave's user avatar
  • 1,277
0 votes
1 answer
60 views

I am trying to open dialogs, which have their own Controllers, opening them through events. My problem now is, that I am always getting Cannot read property $emit of undefined`, because for some ...
user3241778's user avatar
0 votes
1 answer
58 views

I do have a problem with bindings in AngularJS. I created 2 components (leftForm and rightForm) those components have an input and a p element. This p element is a count number that increases when ...
Akai shur's user avatar
  • 187
0 votes
0 answers
123 views

$rootScope.loadAccountSubjects = function() { if($rootScope.shaAccountId == undefined || $rootScope.shaAccountId == null) { $rootScope.shaAccountId = $("#userInfo_userAccountId").val(); ...
Arpit Gupta's user avatar
0 votes
0 answers
98 views

I get data from the DB and want to set inside config. Now, I get it inside $http.get in a service and store in a rootScope variable as well. How can I access inside config? I saw some examples, do I ...
user8125765's user avatar
2 votes
5 answers
2k views

Login.js: app.controller('LoginFormController', ['$scope','$http','$rootScope', '$state', function($scope, $http, $rootScope, $state) { $scope.user = {}; $scope.authError = null; $scope....
Abdul khader's user avatar
-1 votes
1 answer
69 views

I have this: $scope.products; I set the value on it like this: $scope.products = plans; where plans is the result I get back from a call. If I debug, here, I have $scope and $scope.products in the ...
rosu alin's user avatar
  • 5,848
0 votes
1 answer
282 views

I was using AngularJS a lot and I often read "don't over use $rootScope, it's bad practice". Then, when React came up with the Flux pattern there was one central place for all data, which remembered ...
EscapeNetscape's user avatar
2 votes
1 answer
125 views

I want to use $rootScope.$broadcast() inside onExit when state changes. But for this, I need to inject $rootScope in the .config(), which is not possible in angular onExit: function () { ...
Varun Sukheja's user avatar
0 votes
0 answers
42 views

I am broadcasting an event in my app controller: var locationSrt = location.toString(); if(locationSrt.indexOf("?RecoverPassword") !== -1) { $rootScope.$broadcast('recover-password'); } Then in ...
LazioTibijczyk's user avatar

15 30 50 per page
1
2 3 4 5
12