[英]Visual studio - Angular 2 project structure
I'm using Visual studio 2015 to develop multiple angular2 single page apps. 我正在使用Visual Studio 2015开发多个angular2单页应用程序。 The applications share some common components (Login, header, footer etc) and also I like to have only single node_modules accessible to all the apps. 这些应用程序共享一些通用组件(登录,页眉,页脚等),我还希望所有应用程序只能访问单个node_modules。 The apps are in single VS project within their own directories current setup that I have: 这些应用程序位于我自己的目录当前设置下的单个VS项目中,我具有:
As per the best practices what is best structure for the VS solution/project? 根据最佳实践,VS解决方案/项目的最佳结构是什么?
Maybe you should consider creating ONE app but with MULTIPLE ng2 modules like DealFinderModule, JobBoardModule, SharedModule. 也许您应该考虑创建一个应用程序,但要使用多个ng2模块,例如DealFinderModule,JobBoardModule,SharedModule。 Using modular system is considered to be the best practice and will help you achieve your goals 使用模块化系统被认为是最佳实践,将帮助您实现目标
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.