Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How can i use javascript to controller a component with AEM

Avatar

Avatar
Level 1
thionor
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile

Avatar
Level 1
thionor
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile
thionor
Level 1

13-03-2021

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? 

AEM javascript

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Establish
Level 4
Rohit_Utreja
Level 4

Likes

44 likes

Total Posts

45 posts

Correct Reply

15 solutions
Top badges earned
Establish
Give Back 3
Give Back
Boost 5
Boost 3
View profile

Avatar
Establish
Level 4
Rohit_Utreja
Level 4

Likes

44 likes

Total Posts

45 posts

Correct Reply

15 solutions
Top badges earned
Establish
Give Back 3
Give Back
Boost 5
Boost 3
View profile
Rohit_Utreja
Level 4

14-03-2021

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/

 

Answers (1)

Answers (1)

Avatar

Avatar
Affirm 50
MVP
Vaibhavi
MVP

Likes

216 likes

Total Posts

181 posts

Correct Reply

61 solutions
Top badges earned
Affirm 50
Validate 1
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Affirm 50
MVP
Vaibhavi
MVP

Likes

216 likes

Total Posts

181 posts

Correct Reply

61 solutions
Top badges earned
Affirm 50
Validate 1
Ignite 1
Give Back 5
Give Back 3
View profile
Vaibhavi
MVP

13-03-2021

Hi @thionor 

Question is not clear. Kindly elaborate. 

If you are looking at how to include js please check the below document

https://experienceleague.adobe.com/docs/experience-manager-64/developing/introduction/clientlibs.htm...