Angular初识

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xsh096011/article/details/88427986

在这里插入图片描述

Angular 常用命令:

创建项目: ng new auction(项目名称)
添加组件:ng g mponent navbar(组件名称)
引入第三方类库:npm install bootstrap --save
声明一个服务:ng g service shared/product(文件夹目录)
服务启动: ng serve
运行:npm run start
查看Angular版本:ng -v
返回项目目录:cd angular-cli-project

猜你喜欢

转载自blog.csdn.net/xsh096011/article/details/88427986