How to use the @sitecore-jss/sitecore-jss.convertRouteToLayoutServiceFormat function in @sitecore-jss/sitecore-jss

To help you get started, we’ve selected a few @sitecore-jss/sitecore-jss 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 Sitecore / jss / samples / basic-sample-angular / sitecore / definitions / data.ts View on Github external
export const getRouteData = (route) => {
  switch (route) {
    case '/': {
      return convertRouteToLayoutServiceFormat(routes.home);
    }
  }
};

@sitecore-jss/sitecore-jss

This module is provided as a part of Sitecore JavaScript Rendering SDK. It contains the core JSS APIs (layout service) and utilities.

Apache-2.0
Latest version published 8 days ago

Package Health Score

81 / 100
Full package analysis

Similar packages