angular11的学习
发布于 3 年前 作者 juan54 2080 次浏览 来自 分享

1.安装angular/cli 只需要安装一次

npm install -g @angular/cli 或者 npm install -g @angular/[email protected]

2.查看环境是否成功

ng v

3.新建项目

ng new demo01

4.打开项目

ng serve --open

app.module

app.component

创建组件news

ng g component components/news

app.module引入了news.component

使用组件 app-news



回到顶部