Skip to content
This repository has been archived by the owner on May 5, 2020. It is now read-only.

mpicard/angular-dynamic-remote-modules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Angular 5 Dynamic Remote Module Loading (with AOT support)

This proof of concept is split into two components, a server that builds and serves an Angular module w/ component and an Angular-CLI generated client/frontend that dynamically loads the remote module over HTTP using SystemJS. Use cases include widget dashboards that can load third-party widgets/components remotely on load or via a URL versioning system for example. This work was inspired by Maxim Koretskyi's talk that uses webpack and my good colleagues work here.

Install

cd server && yarn
cd client && yarn

Run

cd server && yarn build && yarn start &
cd client && yarn build && yarn start &

TODO

  • Refactor client code a bit into providers and modules
  • Try more complex modules/component arrangments

About

Load modules from remote server and dynamically load with AOT (eg. widget dashboard)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published