![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
angularjs2
取名字真难1995
学一点是一点
展开
-
angularjs2 组件
ts文件中// 新建Product 类class Product{ constructor(public sku:string, public name:string, public imageUrl:string, public department:string[], public price:number){}}@Component({ selector:"a...原创 2018-09-19 14:57:05 · 143 阅读 · 0 评论 -
angularjs2指令
*ngIf<div *ngIf="false">1</div><div *ngIf="a>b">1</div><div *ngIf="str=='yes'">1</div><div *ngIf="fn()">1原创 2018-09-19 14:58:53 · 153 阅读 · 0 评论 -
angularjs2表单
//表单FormControl 单一输入字段let name=new FormControl('Nate');name.value//Natename.error// StringMap<string, any> of errorsname.dirty//脏检查 falsename.valid//true FormGroup 字段的值和状态(为一组formcontr...原创 2018-09-19 15:02:13 · 158 阅读 · 0 评论 -
angularjs2大漠穷秋视频笔记整理
git.oschina.net/mumu-osc/NiceFishnpm config list联网方式npm config set proxy="代理地址"npm config delete proxyangular-cli 安装npm install -g angular-cling --versionng helpng new my-projectnpm insta...原创 2018-09-19 15:03:28 · 678 阅读 · 0 评论