Send custom event from one module to another module (Parsley)
-
12-04-2021 - |
Domanda
I have created a modular application. I have two modules, for example Module1
and Module2
.
I have loaded these modules in my application. I am using Parsley in my application. I have loaded separate different context builder in both modules.
But when I am dispatching event from Module1
, I am able to listen that event in that Module1
but I am trying to listen that event in another Module2
. I am not able to listen that event in that Module2
through Parsley. Please help me.
Soluzione 2
I had done it by settings same application domain of all the modules...
Altri suggerimenti
I think it has something to do with you loading 2 different contexts for each module. Art gave out a really good tutorial on the matter: Art's Flex Notes - Nested Contexts.