0

I have created an Application event and registered that in Component 'A'. I have component 'B', where i have declared handler for the event. Now my issue is I have the init method on Component 'B' and want to get parameters in this init method. Can anyone suggest approach?

Thanks in Advance.

1 Answer 1

0

You can't. Application Event handlers will necessarily fire after the aura:valueInit handler (the technical name for the component initialization handler event). The aura:valueInit handler is literally the first event that every component receives that your component can respond to. You'll need to write your component in a way that handles this sort of initialization in the Application Event handler, instead.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .