且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在同一个项目中的多个 Angular 应用程序之间共享一个模块

更新时间:2023-11-22 16:34:40

正如 Niel Lunn 在他的评论中所说,解决方案是仅相对于路径导入".因此,这导致您可以在驻留在一个项目中的应用上重用您的模块!

As Niel Lunn said in his comment, the solution was "Just import relative to the path". So this leads to that you can reuse your modules over apps that resides in one project!

检查此处 了解如何在一个项目中创建多个应用.

Check here to see how you create multiple apps in one project.