Model-Driven Single Page Application

Single Page Applications using the JavaScript SPA SDK for AEM are model-driven:

  1. Front-end components register themselves to the Component Mapping Store.

  2. Then the Container, once provided with a model by the Model Provider, iterates over its model content ( :items).

  3. If there is a page, its children ( :children) first get a component class from the Component Mapping and then instantiate it.

App Initialization

Each component is extended with the capabilities of the ModelProvider. Initialization therefore takes the following general form:

  1. Each model provider initializes itself and listens for changes made to the piece of model that corresponds to its inner component.

  2. The PageModelManager must be initialized as represented by the initialization flow.

  3. Once stored, the page model manager returns the complete model of the app.

  4. This model is then passed to the front-end root Container component of the application.

  5. Pieces of the model are finally propagated to each individual child component.

app_model_initialization

Experience Manager


Adobe Experience Manager Sites: Top Innovations

Online | Session | General Audience

Digital interactions are the most critical touchpoints in a customer journey. Brands need to maximize the impact of content to drive...

Tue, Mar 18, 2:00 PM PDT (9:00 PM UTC)

Register

Put the Customer at the Center and Build Relationships That Last a Lifetime

Online | Strategy Keynote | General Audience

First impressions last a lifetime. Great first impressions feel personal, connected, and relevant right from the start. From the first...

Wed, Mar 19, 2:30 PM PDT (9:30 PM UTC)

Register

Connect with Experience League at Summit!

Get front-row access to top sessions, hands-on activities, and networking—wherever you are!

Learn more