How can i use javascript to controller a component with AEM
Can i use Javascript to controller a component in AEM 6.4? How configure to build a script JS in UI.Frontend to Clientlib-site.JS?
Can i use Javascript to controller a component in AEM 6.4? How configure to build a script JS in UI.Frontend to Clientlib-site.JS?
Hi @thionor ,
ui.frontend has a "clientlib.config.js", which contains configuration to store generated Clientlib-site.JS in the ui.app repository.
You can modify this as per your project structure to store generated js file in your project.
If you want to use JavaScript controller in the HTL/sightly file, please refer to the below link for the same.
https://adobemarketingclub.com/2015/12/05/javascript-use-api-with-a-simple-component-in-sightly/
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.