Assigning values to app/shell/page level variables in Javascript
Summary
Assigning values to app/shell/page level variables in JavascriptContent
Hi,
Could you please let us know how to assign the values to Application/Shell/Page level variables in Java script.
I have code snippet like below where i want to assign some value to application level variable inside that on click code snippet.
Below is Code:
define([], function() {
'use strict';
var PageModule = function PageModule(context) {
$(document).on("click", "a>img", function(e) {
// Want to assign here a value to app/shell/page level variable
});
};
return PageModule;
});
With Regards,
Eswar.
Version
18.4.5Code Snippet
define([], function() { 'use strict'; var PageModule = function PageModule(context) { $(document).on("click", "a>img", function(e) { // Want to assign here a value to app/shell/page level variable }); }; return PageModule; });
Tagged:
0