I have created home.js file using require-config.js for HomePage.
And init that home.js file in home.phtml file for Home Page.
But i need to get the function that inside the home.js file into size.html file for Home Page.
var config = {
map: {
'*': {
xxHomePage: 'XXX_HomePage/js/home-page'
}
}
};
In js file:
getMsg: function () {
return "HI";
},
In Home.phtml file:
<div class="home-slider" id="home-slider" data-mage-init='{"xxHomePage":{}}' data-bind="blockLoader:true">
I need to get the 'getMsg' function into size.phtml (that also in home page
Is there any possible
How to do this ..
Thanks
home.js
and and which function you want to call?