Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Accessing variables in Module Function

edited Feb 12, 2020 5:47AM in Visual Builder 3 comments

Summary

Accessing variables in Module Function

Content

Hi,

How do we access page scope or application scope variables in JavaScript module function other than passing as parameter.

tried something like below but getting error.

PageModule.prototype.myfunction= function(){
  
 var myVar= $page.myVar
  
    };

 

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!