【发布时间】:2020-09-08 07:05:11
【问题描述】:
我目前正在寻找有关如何将单独的应用程序加载到其中的角度解决方案。 比如:
applicationA
- main.js
- vendor.js
- 1.js (chunk)
applicationB
- main.js
- vendor.js
- 1.js
- 2.js
applicationA 将在路由 /appb 上加载 applicationB 并且还能够执行 appb/subroute。
这样做的最终目标是让多个团队可以分别开发多个应用程序,并且当applicationA 中的某些内容发生更改时,应用程序A 调用的所有应用程序都不需要重新部署。
我正在看这篇文章并让我非常接近:https://medium.com/angular-in-depth/building-extensible-dynamic-pluggable-enterprise-application-with-angular-aed8979faba5。但是,我无法让它与子路由一起运行,并且构建在一组模块之上,而不是应用程序之上。
最后,来自 Manfred Steyer 的一篇文章,https://www.angulararchitects.io/aktuelles/dynamic-module-federation-with-angular/,这是我真正想要的,但是,这是建立在尚未成熟的“下一个”技术之上的,而不是 Angular 版本,也不是它的路线图(我认为)。
问题: 有没有人构建了这种解决方案,我可以从中得到一些指示?
【问题讨论】:
标签: angular typescript angular-bootstrap micro-frontend angular-builder