Socket
Socket
Sign inDemoInstall

@adobe/aem-core-components-angular-spa

Package Overview
Dependencies
27
Maintainers
18
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @adobe/aem-core-components-angular-spa

This module provides a Angular implementation for the containers in the [AEM core components](https://www.aemcomponents.dev/). This only works with the [AEM SPA editor](https://docs.adobe.com/content/help/en/experience-manager-64/developing/headless/spas


Version published
Weekly downloads
554
increased by3.17%
Maintainers
18
Created
Weekly downloads
 

Readme

Source

AEM WCM Components - Spa editor - Angular Core implementation

This module provides a Angular implementation for the containers in the AEM core components. This only works with the AEM SPA editor.

Current supported / exported components:

Containers

  • Accordion (V1)
  • Carousel (V1)
  • Container (V1)
  • Tabs (V1)

Abstraction

  • AbstractCoreContainerComponent

Usage

You can choose to import the entire library at once OR import components individually. The latter is useful if you want to only enable a few components and you want to save your javascript footprint. Also, if you want to load all core components, but you want to lazyload them with angular suspense, you will need to import them individually.

Importing the whole library:

import * as SpaCoreComponents from "@adobe/aem-core-components-angular-spa";
const {CarouselV1, CarouselV1IsEmptyFn} = BaseCoreComponents;

Importing the CarouselV1 component individually (for code splitting):

import {CarouselV1, CarouselV1IsEmptyFn} from "@adobe/aem-core-components-angular-spa/containers/carousel/v1";

Using the imported code

Now that you have the CarouselV1 and CarouselV1IsEmptyFn imported, you can use them in your project. The properties of the Button 1 on 1 correspond to the Sling Model Exporter (.model.json) output.

Note: There are some exceptions where some extra properties are added (mainly i18n labels) that are currently not present in the OOTB sling model exports. These can be added by the project itself with delegation. If they are not present, the default (English) values will be used.

MapTo('my-project/wcm/components/containers')(CarouselV1, {isEmpty: CarouselV1IsEmptyFn});

For a complete project with examples, visit the github page.

FAQs

Last updated on 10 Jun 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc