随笔分类 -  Angular + Primeng + CDK

摘要:Angular Form Validation 在 form.js 中参考这个方法,validator/asyncValidator 都被封装了一层。把多个 validator 方法合并成一个,然后通过forkjoin,将多个异步合并成一个,这个地方有个坑,asyncValidator 返回的虽然是 阅读全文
posted @ 2021-08-20 17:34 kongshu 阅读(98) 评论(0) 推荐(0) 编辑
摘要:ngSelect 组件的笔记 virtual Scroll 实现原理 Dom 结构图如下 <div #scroll class="ng-dropdown-panel-items scroll-host"> <div #padding [class.total-padding]="virtualScr 阅读全文
posted @ 2021-07-12 21:09 kongshu 阅读(91) 评论(0) 推荐(0) 编辑
摘要:Angular 双向绑定 利用一个例子来看看破坏双向绑定 // parent component html <child [val]='val'/> <button (onClick)="val=1">Reset</button> // child component html <span>{{va 阅读全文
posted @ 2021-06-16 22:24 kongshu 阅读(140) 评论(0) 推荐(0) 编辑
摘要:Angular: ViewContainerRef, ElementRef, TemplateRef, ComponentRef Basic introduction to these four concepts ViewContainerRef definition from angular Do 阅读全文
posted @ 2021-05-30 15:42 kongshu 阅读(644) 评论(0) 推荐(0) 编辑
摘要:Animation in CSSMotion and Angular CSSMotion status: none, appear, enter, leave step: none, prepare, start, active, end explanation for status none: i 阅读全文
posted @ 2021-05-19 10:33 kongshu 阅读(207) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示