可以为 "ng generate application" 的子目录生成一个应用程序吗?
Can one generate an app to sub-directories with "ng generate application"?
我正在尝试设置一个 Angular 工作区,想知道是否可以 运行 "ng generate application" 命令到项目文件夹中的子目录。
我已经尝试过 运行 像 "ng generate component" 命令那样设置它,您只需像 "ng generate component main/sub" 那样指定路径,但它看起来不像 "application"有那个选项。
您应该像这样创建工作区:
ng new worspace-name --create-application=false
转到文件夹:
cd workspace-name
然后像这样创建应用程序:
ng generate application application-name
检查https://angular.io/cli/new and https://angular.io/cli/generate
我每天都使用 --directory 标志在子目录中生成应用程序
例如ng g app hold-my-bier --directory=StupidIdeas
我正在尝试设置一个 Angular 工作区,想知道是否可以 运行 "ng generate application" 命令到项目文件夹中的子目录。
我已经尝试过 运行 像 "ng generate component" 命令那样设置它,您只需像 "ng generate component main/sub" 那样指定路径,但它看起来不像 "application"有那个选项。
您应该像这样创建工作区:
ng new worspace-name --create-application=false
转到文件夹:
cd workspace-name
然后像这样创建应用程序:
ng generate application application-name
检查https://angular.io/cli/new and https://angular.io/cli/generate
我每天都使用 --directory 标志在子目录中生成应用程序
例如ng g app hold-my-bier --directory=StupidIdeas