The Angular npm Deduplication sample provides a portlet that uses the Angular framework to render its output.
This is done by providing a deduplicated instance of the Angular framework as an OSGi bundle and then leveraging it from a sample portlet.
This sample is broken into two modules:
The Angular Provider sample generates an OSGi bundle that provides a deduplicated instance of the Angular framework that portlets can share when rendering their output. The Angular Consumer portlet uses the deduplicated instance of the Angular framework.
Note: Both modules must be deployed to the server for this sample to run.
This sample leverages the npm development workflow support.
To accomplish the bundling, the project’s build process relies on a
script inside its
"build": "tsc && liferay-npm-bundler"
This sample is built with the following build tool: