Expand my Community achievements bar.

SOLVED

Angular Js with Sighltly

Avatar

Former Community Member

HI All,

Plan to use Angular js with sightly,can we use or not?

Any drawbcks  if  not to use or benefits if want to use this.

Thanks,

Nani.

1 Accepted Solution

Avatar

Correct answer by
Level 10

I have used both sightly and Angular extensively Here are my thoughts:

1. No doubt, angular Js is great framework when comes to client side execution/integrations (JavaScript based)

2. Again no doubt, sightly is great when comes to server side stuff (Java based).

3. Few people gets confused, As sightly uses data-sly (which is html attribute), but it gets processed at backend.

Sightly + Angular is very good combination, but make sure you are very clear with client side / server side execution

View solution in original post

4 Replies

Avatar

Employee

Many people are using this. Just realize that Sightly/HTL is server-side only.

Avatar

Level 10

It would be the same as this JavaScript example: 

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

In clientlib - use Angular lib.  

Avatar

Correct answer by
Level 10

I have used both sightly and Angular extensively Here are my thoughts:

1. No doubt, angular Js is great framework when comes to client side execution/integrations (JavaScript based)

2. Again no doubt, sightly is great when comes to server side stuff (Java based).

3. Few people gets confused, As sightly uses data-sly (which is html attribute), but it gets processed at backend.

Sightly + Angular is very good combination, but make sure you are very clear with client side / server side execution

Avatar

Administrator

Hi,

Some reference article that could be used as a references are:-

Link:- http://www.conexiogroup.com/angular-sightly-in-your-aem-project/  [Must Read]

// Angular + Sightly in your AEM project

This article talk about the integration of Angular JS and Sightly in AEM projects. Putting these technologies together allows modularization and to improve the performance of your application, making it easier for the developer to work. 

 Angular JS allows you to create modules in the fronted where you can find the logic already implemented in the controllers, showing it in single pages or partial views.

 

Link:- https://github.com/sikarwarvimal/aem-sightly-angularjs

// it is AEM Sightly-Angular project

 

Link:- http://www.slideshare.net/connectwebex/build-single-page-applications-using-angularjs-on-aem

//Build single page applications using AngularJS on AEM

 

Link:- http://www.albertoalmagro.com/en/trying-to-integrate-sightly-with-angularjs-aem6/

//integrate Sightly with AngularJS in AEM6

 

This covers example implementations with pros-cons and development experience of creation AEM project with AngularJS.

~kautuk



Kautuk Sahni