RequireJS in AEM | Community
Skip to main content
Tuhin_Ghosh
April 19, 2016
Solved

RequireJS in AEM

  • April 19, 2016
  • 4 replies
  • 1647 views

 I am trying to use requireJS in AEM.

have gone through the below three URLs, please let me know if there is any more material or some other link I can refer.

https://github.com/yaycmyk/CQ5-RequireJS
http://stackoverflow.com/questions/21222235/using-require-js-for-client-side-dependancies-in-adobe-cq5
http://labs.6dglobal.com/blog/2015-05-08/requirejs-kiss/

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

Would it not be the same as using other JS frameworks in AEM- ie JQuery and AngularJS? 

https://helpx.adobe.com/experience-manager/using/integrating-jquery-framework-cq.html

https://helpx.adobe.com/experience-manager/using/AngularJS.html

4 replies

smacdonald2008
smacdonald2008Accepted solution
April 19, 2016
Tuhin_Ghosh
April 20, 2016

Hi Scott,

Thats true, its just our front team is used to working with require js.

Thanks

Tuhin

kautuk_sahni
Community Manager
Community Manager
April 20, 2016

Hi

As mentioned by Scott, we can use RequiresJS (RequireJS is a JavaScript file and module loader) in the same way as we do for Jquery.

Link:- https://helpx.adobe.com/experience-manager/using/integrating-jquery-framework-cq.html (Add the JQuery framework to the component)

Link:-https://helpx.adobe.com/experience-manager/using/integrating-jquery-framework-cq.html (Integrating the JQuery Framework into Adobe CQ)

Link:- http://labs.6dglobal.com/blog/2015-05-08/requirejs-kiss/

Link:- https://helpx.adobe.com/experience-manager/using/AngularJS.html

 

I hope you will get some help from this.

 

Thanks and Regards

Kautuk Sahni

Kautuk Sahni
Tuhin_Ghosh
April 20, 2016

Thanks Scott and Kautuk,

I would try and follow these approaches suggested by you. If I am stuck somewhere, I would get in touch with you guys. Thus now I am marking this as solved.

Thanks

Tuhin