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 ...

learn more… | top users | synonyms

0
votes
2answers
33 views

AngularJS : How to update directive scope from child controllers

I have a simple parent/child controller set up as follows: <body ng-controller="ParentCtrl"> <section my-directive></section> <div ng-controller="Child1Ctrl"> ...
1
vote
1answer
27 views

$rootScope event preventDefault doesn't stop succeeding handler

I'm using ui-router and registered two $stateChangeStart handlers for login page redirection. function func1(e,to,toParams, from, fromParams){ .... if (notAuthenticated) { ...
0
votes
1answer
10 views

dynamic multidimensional arrays looping

I need to create a multidimensional array using intervals. I have 5 users who's data grows every 5 seconds. Each user needs array to hold this data that can be accessed for each user later. ...
0
votes
1answer
98 views

Scope value is not getting updated even though the rootscope has the value

I have view <div ng-controller="DisplayController"> <display-view style="width:{{model.width}}" value={{model.value}}</display-view> </div> Given my controller as ...
0
votes
0answers
36 views

Can't access scope data in Angularjs

I am currently working on angular app and bumped into a problem. The problem is when I'm getting the data form backend through factory into controller, eventhrough I apply this data to scope I can't ...
0
votes
0answers
9 views

Communicate to a sibling controller who is not explicitly defined

Hello I have the following situation I have a controller with a Method, that sets a timeout and calls a modal along with other actions: angular .module('app') .controller('GlobalController', ...
0
votes
0answers
11 views

Reinit the values of many controller into another in AngularJs

So, I have a problem with my application in AngularJS. And I haven't found proper solution yet. Issue: I have several templates and each of them recovers part of a user reporting.I have several ...
0
votes
0answers
35 views

Error: [filter:notarray] Expected array but received an object

Hi I am trying to create a basic global search which will filter results on the pages depending on which view (controller) is present. Search controller: <form ng-controller="searchCtrl"> ...
0
votes
0answers
22 views

$modal.open() actions in result not updating in form validation directive

I have an angular directive called "show-errors" that I use for form validation. This will apply the "has-error" css class to the containing div when validation fails. This works great in most ...
0
votes
0answers
48 views

AngularJS - Dynamically Change Template URL based on rootScope's value in routeconfig

define([], function () { var routeResolver = function () { this.$get = function () { return this; }; this.routeConfig = function () { var ...
0
votes
0answers
34 views

Message pub/sub in angularjs

I am creating a messaging service in angularjs project I am working. (function (angular) { 'use strict'; angular.module('MyApp').factory('messagebus', messagebus); messagebus.$inject = ...
0
votes
0answers
50 views

Use of $rootScope value module.config throwing error

this is my app.config app.config(['$translateProvider',function ($translateProvider) { $translateProvider.useUrlLoader('/api/sitecore/translations/get?pageName=' + $rootScope.currentPage + ...
0
votes
0answers
73 views

ionic app.run deviceready rootscoop variable not working

In my ionic app I have the app.run function and a device ready function inside it: app.run(function($rootScope, $ionicPlatform, $cordovaPush) { document.addEventListener("deviceready", ...
0
votes
0answers
271 views

Error: [$rootScope:inprog] $apply already in progress

I just tried to use 'ngTagsInput' in my angular app and the tags in the app are running fine,but sumultaneously its throwing the error in the console.Its not affecting my UI flow but yes errors are ...