This project demonstrates several ways to load multiple modules.
- One way is to load lazy modules via the router.
- Another way is to create an custom elements bundle and load it via script element:
<script type=module src="http://...>
"
The state (store) / context is shared between modules and application.
This project was generated with Angular CLI version 9.0.0-rc.5.
- Node V. 10.13.x or later
- Angular CLI 9.0.0-rc.5
-
Clone this repository
-
npm i
to intall all needed modules. -
npm start
to start the demo.- creates an production build of reporting (custom elements bundle) and copies it to the
server/module/reporting
Folder. - starts the mock api server to provide modules information and reporting bundle
- starts the demo app
- creates an production build of reporting (custom elements bundle) and copies it to the
There you go: demo runs at localhost:4200