简体   繁体   English

如何在多项目/工作区中应用 Angular-Universal?

[英]How to apply Angular-Universal in Multi-project/Workspace?

I Need to Install angular-universal in my Workspace/Multi-Project Application.But the worst case is that I can't able to find any Document/video reference in angular.io(Official Website).They are demonstrated for only single project.我需要在我的工作区/多项目应用程序中安装 angular-universal。但最坏的情况是我无法在 angular.io(官方网站)中找到任何文档/视频参考。它们仅针对单个项目进行了演示.

Need Step by step guide or any reference would be appreciated.需要分步指南或任何参考将不胜感激。

There is not much documentation but this blog gave me a hint.文档不多,但这个博客给了我一个提示。

You can add Angular-Universal to a specific project in your workspace with the below command.您可以使用以下命令将 Angular-Universal 添加到工作区中的特定项目。

ng add @nguniversal/express-engine --clientProject yourProjectName

For new angular version:对于新的角度版本:
ng add @nguniversal/express-engine --project projectName ng add @nguniversal/express-engine --project projectName

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

相关问题 如何在 Visual Studio Code 中调试 Angular 多项目工作区 - How can I debug an Angular multi-project workspace in Visual Studio Code 角度普遍 - 生产问题 - Angular-universal - Production Issues Angular-universal MutationObserver 问题 - Angular-universal MutationObserver problem 将 angular-universal 部署到 apache 服务器(Angular 9) - Deploy angular-universal to apache server (Angular 9) 将 angular 应用程序导入到多项目结构中 - Import an angular application into multi-project structure Angular Universal:“在工作空间中找不到项目。” - Angular Universal: “Project could not be found in workspace.” 角度通用(服务器端)上HTTP调用的CORS错误 - CORS error on HTTP calls in angular-universal (server side) 如何在多项目工作区中仅部署单个 Angular 项目 - How to deploy only a single angular project in a multi-projects workspace Grails 3:在具有角度配置文件的多项目构建中更改端口 - Grails 3: Changing Ports on a Multi-Project Build with an Angular Profile 在Angular-Universal Server中定义API是一种好习惯吗? - Is it good practice to define your API in the Angular-Universal Server?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM