add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

36
pages.zh/common/ng.md Normal file
View File

@@ -0,0 +1,36 @@
# ng
> 创建和管理 Angular 应用程序。
> 更多信息:<https://angular.io/cli>。
- 在一个目录中创建一个新的 Angular 应用程序:
`ng new {{project_name}}`
- 向应用程序添加一个新组件:
`ng generate component {{component_name}}`
- 向应用程序添加一个新类:
`ng generate class {{class_name}}`
- 向应用程序添加一个新指令:
`ng generate directive {{directive_name}}`
- 在应用程序的根目录中运行应用程序:
`ng serve`
- 构建应用程序:
`ng build`
- 运行单元测试:
`ng test`
- 显示当前 Angular 安装的版本:
`ng version`