查看ng命令行

ng help

 

创建项目

ng new projectName

ng new projectName --routing【--routing表示创建带路由的项目】

 

配置依赖

npm install

 

启动服务器

ng serve

npm start

 

发布项目

npm run build

 

创建组件

ng g component componentName

 

创建服务

ng g service serviceName

 

创建管道

ng g pipe pipeName

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-22
  • 2021-05-03
  • 2021-08-15
  • 2021-07-15
  • 2022-03-05
猜你喜欢
  • 2021-08-30
  • 2022-12-23
  • 2021-11-17
  • 2022-01-12
  • 2022-02-10
  • 2021-11-28
  • 2022-12-23
相关资源
相似解决方案