How to use the @spartacus/storefront.OutletPosition.BEFORE function in @spartacus/storefront

To help you get started, we’ve selected a few @spartacus/storefront examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SAP / cloud-commerce-spartacus-storefront / projects / incubator / src / eventsystem / event-demo.module.ts View on Github external
const isReady = () => {
    const factory = componentFactoryResolver.resolveComponentFactory(
      EventDemoComponent
    );
    outletService.add('cx-storefront', factory, OutletPosition.BEFORE);
  };
  return isReady;

@spartacus/storefront

Spartacus Storefront is a package that you can include in your application, which allows you to add default storefront features.

Apache-2.0
Latest version published 2 years ago

Package Health Score

54 / 100
Full package analysis