Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
219 views

How to handle click events from inside of the directive?

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
-2 votes
1 answer
298 views

directive to directive communication using broadcast angularjs

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
1 vote
2 answers
710 views

stateChangeStart event in Angular doesn't fire when refreshing page

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

Best way for communication between directives

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