angular 多项目

Multiple Projects

多项目

Angular CLI supports multiple applications within one workspace.
Angular CLI支持多个应用在一个工作空间

To create another app you can use the following command:
创建另一个应用程序可以使用下面的命令:

ng generate application my-other-app

The new application will be generated inside projects/my-other-app.
新应用程序 projects/my-other-app 将在内部生成.

Now we can serve, build etc. both the apps by passing the project name with the commands:
现在, 我们可以通过使用命令传递项目名称来 serve, build 等两个应用程序:

ng serve my-other-app

You can also create libraries, which is detailed in Create a library.
您还可以创建库, 这在创建库中是详细的。

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容