SPAs in AEM | Community
Skip to main content
AEM_Forum
Level 10
Jul 16, 2018 7:43 AM UTC
Solved

SPAs in AEM

Hi,

I was going through Getting Started with SPAs in AEM @ https://solutionpartners.adobe.com/content/dam/spp_assets/public/public_5/Getting_Started_with_SPAs_in_AEM.pdf

I am stuck up with the very basic question on what "single page" refers to.

I am aware of their advantages, but how a typical site could be fitted in to a single page?

99% of the web sites have multiple sections and pages to cover different topics.

Ex: A hospital web site has one section on OP, another on patient self care like fixing appointments and another for surgeries.

How could a single page possibly address all these requirements?

Even if we force all such info in to a single page, would it not be jam packed?

Appreciate your replies.

Thanks,

Rama.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
New Participant
Jul 16, 2018 12:43 PM UTC

Hi,

This is depends how you do. For example in Angular this can be done using controllers and routing

based on user action , different HTML file will be injected based on url.

AngularJS User Registration and Login Example & Tutorial | Jason Watmore's Blog

Arun Patidar

6 replies

smacdonald2008
Level 10
Jul 17, 2018 4:27 PM UTC

Just a note here - we are planning on doing an ASk the AEM Community Experts on SPA in late 2018 or early 2019.

Translate
arunpatidar
arunpatidarAccepted solution
New Participant
Jul 16, 2018 12:43 PM UTC

Hi,

This is depends how you do. For example in Angular this can be done using controllers and routing

based on user action , different HTML file will be injected based on url.

AngularJS User Registration and Login Example & Tutorial | Jason Watmore's Blog

Translate
Arun Patidar
AEM_Forum
AEM_ForumAuthor
Level 10
Jul 16, 2018 12:34 PM UTC

Thanks Arun.

Now it makes sense to me.

One more question....

Let us take the example of a a hospital web site has one section on OP, another on patient self care like fixing appointments and another for surgeries.

How could a single page possibly address all these requirements?

In this case, what could be the possible "place holders" and "variable sections" (rendered using json data)?

Probably there could be multiple variants to "place holders" and "variable sections".

This is for me to visualize how a real life web site could be implemented using an spa.

Highly appreciate your inputs.

Thanks,

Rama.

Translate
arunpatidar
New Participant
Jul 16, 2018 12:08 PM UTC

Single Page means, A site will be having only a page(contains place holder), user will not navigate to other page to access different content. The content will be changed based on users action inside place holders in that page.

Yes, the site won't contains a single file to render entire website but single page.

Translate
Arun Patidar
AEM_Forum
AEM_ForumAuthor
Level 10
Jul 16, 2018 11:34 AM UTC

Hi Arun,

I went through your link.

It, like so many other spa pages, addresses json data vs html, etc.

I understand how it works.

Kindly explain me what the word "Single Page" implies and whether multiple pages could be rendered using SPA.

Thanks,

Rama.

Translate