css 为什么App Module在Angular 17中不存在?

yiytaume  于 8个月前  发布在  Angular
关注(0)|答案(1)|浏览(340)

**已关闭。**此问题需要debugging details。目前不接受回答。

编辑问题以包括desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem。这将帮助其他人回答问题。
9天前关闭
社区在8天前审查了是否重新打开此问题,并将其关闭:
原始关闭原因未解决
Improve this question
我已经用npm下载了新版本的Angular,但还没有看到app.module.ts
是否已从项目结构中删除?
VS code Files
我试着创造一个新的。它看起来很奇怪。

xvw2m8pv

xvw2m8pv1#

从Angular v17开始,Standalone现在是CLI的新默认值。
所以当你创建一个新的项目时,如果你不指定任何东西,你就不会有任何模块。
但是,仍然可以使用--no-standalone标志创建基于模块的应用程序:ng new --no-standalone

相关问题