Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Angularjs 2 and AEM

Avatar

Level 2

Is there any best practices defined by Adobe to add Angularjs 2 framework to AEM 6.1 or higher?

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

Recently I worked on a project in which  AngularJS v1.5.5 was used with AEM 6.1 for a lot of features

I haven't seen any major issues but you might see some challenges when using angular templates in AEM.

Reg, Angular 2, its still new and you might see issues and also its completely different from previous version of angular.

These comments are based on my experience with it :)

Thanks

View solution in original post

11 Replies

Avatar

Level 10

You add this JS lib the same way as other JavaScript frameworks. You use a ClientLib as discussed in this article: 

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

Hope this points you in the correct direction... 

Avatar

Administrator

Hi 

Adding to what Scott has mentioned, Adding any JS framework to AEM is as simple as adding a Third party JavaScript.

Please refer to this Adobe Helpx article for your help:- 

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

Another reference article :

Link:- http://www.conexiogroup.com/angular-sightly-in-your-aem-project/

// Angular + Sightly in your AEM project

 

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

// Helpx package/Article having AEM and Angular working together.

 

~kautuk



Kautuk Sahni

Avatar

Correct answer by
Level 10

Hi,

Recently I worked on a project in which  AngularJS v1.5.5 was used with AEM 6.1 for a lot of features

I haven't seen any major issues but you might see some challenges when using angular templates in AEM.

Reg, Angular 2, its still new and you might see issues and also its completely different from previous version of angular.

These comments are based on my experience with it :)

Thanks

Avatar

Level 3

Hi,

Is there some example of Angular 2 with AEM. I have started learning angular2, it says that it reuired npm server to execute. So do we need npm server along with AEM to run angular 2?

Avatar

Level 10

Only example is Angular with AEM. 

Avatar

Level 2

As of now, it’s not clear on whether we need npm server along with AEM however we can generate the required java scripts using Angular CLI and add them as part of Client Library. 

Avatar

Level 2

Thank you. Really appreciate your response on this.

Avatar

Level 7

NPM server is not required with AEM, see this community article to learn how to integrate Angular 2 with AEM 6.1 https://helpx.adobe.com/experience-manager/using/aem_angular21.html