Angular CLI - 创建其他东西

优质
小牛编辑
127浏览
2023-12-01

Item Command Files generated
Component: ng g component [name] component, HTML, CSS, test spec files
Directive: ng g directive [name] component, test spec files
Pipe: ng g pipe [name] component, test spec files
Service: ng g service [name] component, test spec files
Class: ng g class [name] component, test spec files
Route: ng g route [name] component, HTML, CSS, test spec files (in new folder)