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

I have a modal component that takes an object with binding (ng-model). Something like: <modal ng-model="modals.createContact"></modal> I'm checking for $ctrl.ngModel.show to show/hide the ...
Umut Çağdaş Coşkun's user avatar
0 votes
0 answers
46 views

When i am changing my option value of select it's ng-model value is not being changed. Is this happening because of value is being changed by Jquery? Because i read a line about angularjs from ...
Utm sandeep's user avatar
0 votes
1 answer
177 views

When jsevent triggered , it forwards link parameter to data-url attribute of a button and when user click that button it redirects to django backend view but there is a problem with parsing line of JS ...
BCA's user avatar
  • 438
2 votes
0 answers
125 views

I'm following the migration exercise on the AngularJS docs, for input[checkbox], and it says to change it('should update the model', inject(function($compile, $rootScope) { var inputElm = $compile('...
AncientSwordRage's user avatar
1 vote
2 answers
194 views

I am using two controllers. When changes happen in one controllers it should get changed immediately in the other controller. I am using the $broadcast event to achive this. My code: My First ...
Vishnu's user avatar
  • 767
-1 votes
2 answers
304 views

There is 1 angular app, with 1 parent controller, and a child controller. In the child, there is 1 $watch WATCH-CHILD for OBJ-CHILD, which triggers an $emit. In the parent, there is a listener for the ...
yinonby's user avatar
2 votes
3 answers
6k views

I have applied ng-model-options on input with following configuration ng-model-options="{updateOn:'default blur',debounce:{default:1000,blur:0}}" And as per the applied configuration to the ng-...
Yogesh Jagdale's user avatar
0 votes
1 answer
663 views

In my application, When a controller is being destroyed, is it possible to the $destroy event it emits in another controller?
Maximillion Bartango's user avatar
0 votes
0 answers
90 views

I'm trying to interact with a website using an userscript, but I don't know what's the cleanest possible solution for an outside source to detect the internal $viewContentLoaded event, because it does ...
user1263513's user avatar
0 votes
2 answers
35 views

I have two separate angularjs controllers that are named HomeController and SearchController. I have a function that named Search() in HomeController. How can I run search function from ...
S BOT's user avatar
  • 13
0 votes
1 answer
380 views

I'm trying to stop all event listeners while scope is destroyed. I get this error: TypeError: vm.$on is not a function; Neither vm.on(..) works angular.module('app.layout') .controller('...
miuosh's user avatar
  • 936
2 votes
1 answer
175 views

I have some code that was working in a controller. I refactored and moved that functionality into a service. The code had an event listener: $rootScope.$on( .....) This was caught when it was in the ...
Andres Gonzalez's user avatar
0 votes
0 answers
2k views

To share data between controllers it is common to use service. I found that using $rootScope.$broadcast is really convenient if the data I have to share is a [] or an {}. For me the advantage of ...
Merlin's user avatar
  • 4,925
-2 votes
1 answer
298 views

I have two directives and need to pass value from one directive after a post request into another directive. The first directive looks like var fileUpload = angular.module('fileUploadDirective',[]);...
krs8888's user avatar
  • 1,349
0 votes
0 answers
202 views

I am using the d3.js library inside an angular 1.x controller. My d3.js library creates a click event on a div and when the div is clicked, it updates something on the angular controller's scope. The ...
Filip Novotny's user avatar
1 vote
2 answers
718 views

I have a custom directive: export class XHideDirective { static $inject = ["$rootScope"]; static $rootScope: any; public static build($rootScope) { var directive: ng.IDirective =...
Nick's user avatar
  • 2,907
1 vote
2 answers
1k views

Copied from here. May be, I can get more proper answer here! There seem to be quite a few ways of communicating between directives. Say you have nested directives, where the inner directives must ...
osmanz's user avatar
  • 481
0 votes
1 answer
1k views

Service export class RandomServiceName implements ng.IServiceProvider { /* @ngInject */ constructor(private $rootScope: ng.IRootScopeService) { } public $get(): RandomServiceName { ...
A T's user avatar
  • 14k
2 votes
0 answers
197 views

In other words, is it true that I have to wait for the next event cycle to broadcast using $rootScope.broadcast(), so that other controllers using $rootScope.on() can pick up the broadcasted event? ...
nonopolarity's user avatar