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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Sightly component templates under /etc

Avatar

Level 2

Hi

I am implementing an integration between AEM and an AngularJS SPA. The AngularJS application has to download the component templates as if they were static files under a unique path, let's say under /etc, /etc/templates/component1.html, /etc/templates/component2.html, etc.. Do you know whether I can put my component templates under /etc without loosing the context of my component properties?

 

Thank you!

0 Replies

Avatar

Administrator

Please have a look at this Helpx article covering Integration of AEM with AngularJs

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

Video :- https://youtu.be/X2M3MsdarMk

 

AEM Angular SPA

PPT:- https://docs.google.com/presentation/d/1seLzO0CNyFl7fZT9nJzQcfOqBKYXysEmIi5KB-tMRAk/pub?start=false&...

Code :- https://github.com/AdobeAtAdobe/aem-spa-example

 

We have Webinar coming on "Building responsive layouts in AEM using Bootstrap and Angular JS". It would be really nice to ask this question there as well.

Link:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

~kautuk

Avatar

Level 2

Hi

I read those articles and many implementations of AngularJS and AEM. But my use case is a slightly different. It's an SPA and I need to have all the component templates under a unique folder (e.g., /etc/templates/component1.html, /etc/templates/component2.html, etc.) and not loose the component's context (from component1, $properties.title should still work in component1.html).

Thanks!