Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

SPAs in AEM

Avatar

Level 10

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_...

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.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

6 Replies

Avatar

Level 10

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.

Avatar

Community Advisor

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.



Arun Patidar

Avatar

Level 10

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.

Avatar

Correct answer by
Community Advisor

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

Avatar

Level 10

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