Not sure About that !
Le mardi 22 juillet 2014 11:44:30 UTC+2, ganaraj P R a écrit :
>
> There is one $rootScope for the whole application. It is not one
> $rootScope per module.
>
> You can just do $rootScope.$broadcast('someEvent') from any module and
> listen to it in any other module.
>
>
> On Tue, Jul 22, 2014 at 10:34 AM, maxim couton <[email protected]
> <javascript:>> wrote:
>
>> Hi,
>>
>> I want to broadcast an event from angular module to another ,
>>
>> Suppose I am in moduleA, i want some thing like :
>>
>> angular.moduel('ModuleB').$rootScope.$broadcast("SomeEvent");
>>
>> from inside module A
>>
>>
>> But it is not working ,
>>
>> Any Idea of how to do this ?
>>
>> Thank,
>>
>>
>>
>> --
>> 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] <javascript:>.
>> To post to this group, send email to [email protected]
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/angular.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Regards,
> Ganaraj P R
>
--
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.