angular6 创建命令
程序员文章站
2022-07-13 08:07:04
...
$ ng g module ./mans/mans --routing --flat # 创建路由和 module
CREATE src/app/account/mans/mans-routing.module.ts (247 bytes)
CREATE src/app/account/mans/mans.module.spec.ts (259 bytes)
CREATE src/app/account/mans/mans.module.ts (271 bytes)
$ ng g component edit-manager #创建组件
CREATE src/app/account/manager/edit-manager/edit-manager.component.html (31 bytes)
CREATE src/app/account/manager/edit-manager/edit-manager.component.spec.ts (664 bytes)
CREATE src/app/account/manager/edit-manager/edit-manager.component.ts (293 bytes)
CREATE src/app/account/manager/edit-manager/edit-manager.component.scss (0 bytes)
UPDATE src/app/account/manager/manager.module.ts (938 bytes)
$ ng g service manager # 创建服务