Hi Eric,

I’m not sure I get it, you need some events that needs to be broadcasting 
through your entire system? If that is true, inject rootScope, and use that.
If you need it for just a specific part of your app, create a broadcast 
method on the top-level directive of that part.
hmm, I just builded a small sample, the easiest is add an directtive that 
handles the local-casting, something like this:

     function localCast() {
        var ddo = {
            restrict : 'A',
            controllerAs : 'localCast',
            controller : ['$scope', function (scope) {
                this.broadcast= function (name,args) {
                    // Handling just 1 argument is my laziness ;)
                    scope.$broadcast(name, args);
                };
            } ]
        };
        return ddo;
    }

see it in action: http://plnkr.co/edit/N23XN4eqSWPBVpELpFon?p=preview

how about that?

Regards
Sander
​

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to