随笔分类 -  angluar

摘要:在html页面中 使用冒号隔开 在管道页面 变量名 逗号隔开 阅读全文
posted @ 2019-07-04 21:00 king_94boy 阅读(3438) 评论(0) 推荐(0)
摘要:@Input() 在 B组件的TS文件中定义 这样就可以A B组件传值 @Output() 在B组件中定义 并且在A组件TS文件中定义事件 阅读全文
posted @ 2019-06-19 17:12 king_94boy 阅读(2742) 评论(0) 推荐(0)
摘要:angular6 想要监听页面某些事件 如 点击 window宽高 使用 @HostListener('click', ['$event.target'])onClick(btn) { console.log( btn);} 待续。 阅读全文
posted @ 2019-06-06 20:36 king_94boy 阅读(1114) 评论(0) 推荐(0)
摘要:EPERM: operation not permitted, unlink 'D:\project\ploutoz-web\dist\plo-lib\fesm2015'Error: EPERM: operation not permitted, unlink 'D:\project\ploutoz 阅读全文
posted @ 2019-01-10 14:45 king_94boy 阅读(123) 评论(0) 推荐(0)
摘要:angular 安装ngx-bootstrap npm install bootstrap --savenpm install --save @ng-bootstrap/ng-bootstrap 在style.scss中引入css @import "~bootstrap/dist/css/boots 阅读全文
posted @ 2018-09-18 15:41 king_94boy 阅读(1906) 评论(0) 推荐(0)
摘要:多个参数 this.router.navigate(["deposits"],{queryParams:{'currencyId':currencyId}}); 跳转到另一个组件接收的时候 单个参数 阅读全文
posted @ 2018-09-14 12:09 king_94boy 阅读(119) 评论(0) 推荐(0)
摘要:history.go(-1); 阅读全文
posted @ 2018-09-12 15:44 king_94boy 阅读(1713) 评论(0) 推荐(0)
摘要:在另一个组件中接收 阅读全文
posted @ 2018-09-11 19:19 king_94boy 阅读(1390) 评论(1) 推荐(0)
摘要:Error: If ngModel is used within a form tag, either the name attribute must be set or the form control must be defined as ‘standalone’ in ngModelOptio 阅读全文
posted @ 2018-08-31 16:16 king_94boy 阅读(192) 评论(0) 推荐(0)
摘要:html 是这样的 阅读全文
posted @ 2018-08-31 11:20 king_94boy 阅读(4914) 评论(1) 推荐(0)