This sample project demonstrates the use of DevExtreme Angular components in an Angular Universal application with server-side rendering.
DevExtreme Angular components were added to a project generated using Angular CLI. Then, the project was converted to Angular Universal.
- Clone the repository
git clone https://github.com/devexpress/devextreme-examples.git
- Go to the project folder
cd devextreme-examples/universal-angular
- Install the required modules. This command also convert the DevExtreme package to the AMD module format by using the npm postinstall script.
npm install
- Build example
npm run build:ssr
- Run example
npm run serve:ssr
- Navigate to http://localhost:4000/