简体   繁体   English

angular.json 文件中的根属性

[英]Root Property in angular.json file

What is the value of “root” property in the angular.json file, for the main project of your angular workspace?对于 angular 工作区的主项目,angular.json 文件中“root”属性的值是多少?

The root folder for this project's files, relative to the workspace folder.此项目文件的根文件夹,相对于工作区文件夹。 Empty for the initial app, which resides at the top level of the workspace.初始应用程序为空,它位于工作区的顶层。

If you create a workspace with multiple projects, this can usually be like如果您创建一个包含多个项目的工作区,这通常类似于

"project": [
   "myProject1": {
     "root": "projects/myProject1",
     "...": "...",
    },
    "myProject2": {
     "root": "projects/myProject2",
     "...": "...",
    }

https://angular.io/guide/workspace-config https://angular.io/guide/workspace-config

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM