Getting started
Content SDK for Angular brings the enhancements provided by SitecoreAI to your Angular website. With the 0.1 release, you have access to the following features:
-
Basic rendering and field components
-
Internationalization support
-
Editing and Preview support
-
Multisite
-
Sitemap,
robots.txtendpoints -
Deploying to SitecoreAI as editing host
Creating a Content SDK Angular app
You can scaffold the new app with the latest version of the create-content-sdk-app package:
-
Run the following command:
-
When prompted to choose a template, choose
angular.
You can also provide the following command to create an app directly:
Once completed, you get a sample app based on Angular 21, with ready-made components based on the Skate Park SitecoreAI site.
Connecting the app to SitecoreAI
To connect your application to SitecoreAI, you need to provide the Edge context ID and the default site name for your deployment. You can provide them either through the sitecore.config.ts file, or via environment variables. The following variables are required for the connection:
Starting the app
If you need to build your Content SDK Angular application, you can use the following command:
To start the app in development and pre-production environments, use:
To start the app in production environments, use: