
Angularjs
春风又一季
lecodeyang.github.io/yangmimi
展开
-
angularjs学习文档总结
1.安装脚手架 npm install -g @angular/cli安装cnpm npm install -g cnpm --registry=https://registry.npm.taobao.org如果有警告修改环境变量2.新建项目 cd 文件ng new 项目名 跳过依赖包 ng new 项目名 --skip-install3. 编译运行 ...原创 2019-09-15 14:24:24 · 348 阅读 · 0 评论 -
Anglular8的@ViewChild的变化
配置ViewChild / ContentChild查询的时间使用此功能时,必须提供静态标志以定义何时需要解析ViewChild和ContentChild实例。使用此功能时,必须提供静态标志以定义何时需要解析ViewChild和ContentChild实例。// Ensure Change Detection runs before accessing the instance@Conte...转载 2019-08-20 15:48:35 · 2992 阅读 · 2 评论 -
angularjs的请求数据的方式
在 app.module.ts 中引入 HttpClientModule 并注入import {HttpClientModule} from '@angular/common/http';imports: [ BrowserModule, HttpClientModule]Angular get 请求数据在用到的地方引入 HttpClient 并在构造函数声明import {...转载 2019-08-20 15:51:21 · 542 阅读 · 0 评论 -
angularjs的请求数据的方式
在 app.module.ts 中引入 HttpClientModule 并注入import {HttpClientModule} from '@angular/common/http';imports: [ BrowserModule, HttpClientModule]Angular get 请求数据在用到的地方引入 HttpClient 并在构造函数声明import {...转载 2019-09-04 16:08:33 · 320 阅读 · 0 评论