Skip to content

Latest commit

 

History

History

README.md

ng-xtend logo Dynamic plugin Example

Same as store example, however the plugins are loaded dynamically from the web, instead of being bundled with the application. This allows to update the plugins without rebuilding the application.

What's included

Same as the store example, with the addition of:

  • We remove the Finance and International plugins from the package (see package.json)
  • Native federation framework is added (see package.json)
  • Angular build is modified to support external modules loading through Federation (see angular.json)
  • Finance and International Plugins are loaded from internet (see src/config-manager/config-manager.service.ts)

Development server

To start a local development server, run:

ng serve store

Once the server is running, open your browser and navigate to http://localhost:4200/. The application will automatically reload whenever you modify any of the source files.

Building

To build the project run:

ng build

This will compile your project and store the build artifacts in the dist/ directory. By default, the production build optimizes your application for performance and speed.

Running unit tests

To execute unit tests with the Karma test runner, use the following command:

ng test