Just wondering what’s best practice for storing global variable and global function in Maestro framework?

I need to define a global variable say “adobeSignAgreement” that could share across multiple components. Also I want to define a global function “adobeSignGenerateToken()” in one of the component so other component can call that too.

Currently I can think of putting adobeSignAgreement as window.adobeSignAgreement or data.$adobeSignAgreement (I remember that $ sign means it will not be part of the submission data).

What’s best practice for this?

Also for the global function, what’s the best place to create?  Still attached to window object or some other Maestro object?

    CommentAdd your comment...