angular11的学习

发布于 5 年前作者 juan542315 次浏览最后编辑 5 年前来自 share

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

npm install -g @angular/cli 或者 npm install -g @angular/cli@11.0.3

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



0 回复
暂无回复