11 2019 档案
摘要:custom form control 之前就写过了,这里简单写一下. 创建一个组件实现 ControlValueAccessor 接口 实现 writeValue, model -> view 的时候被调用的,这里实现如何更新 view. 如果时 OnPush 记得要 markForCheck 实
阅读全文
摘要:更新: 2020-02-02 mat table sticky 过早计算 width mat table 非常早就会去计算 width 来做 left or right 如果你用原生的 table tr td 它会依据你的内容做调整. 这种情况下 mat table 就会算错了. 或者算早了. 如果
阅读全文
摘要:更新 2021-12-31 今天遇到一个 bug, 2 个 services, A 和 B A 调用 B, 算是一个嵌套. A 无论如何都会执行, 哪怕 B fail 了. B 在 save change 的时候 fail 了, 我就执行 rollback to savepoint. 然后交回给 A
阅读全文
摘要:修订版请移驾到 SQL Server – Transaction & Isolation 事务与隔离 什么时候会用到嵌套事务 ? 为了代码复用,我们会写许多的储蓄过程,而中间如果需要使用到 transaction 难免就会发生嵌套了. sql server 并不直接支持嵌套事务. 但它可以用一些招式
阅读全文
摘要:https://zhuanlan.zhihu.com/p/84007459?utm_source=com.whatsapp&utm_medium=social&utm_oi=71369442197504 https://github.com/ziishaned/learn-regex https:/
阅读全文
摘要:更新 : 2020-6-22 当 ngtemplate 被丢到千里之外, detech change 失效 refer issue : https://github.com/angular/vscode-ng-language-service/issues/824 举个例子, 比如我们把一个 tem
阅读全文
摘要:refer : https://blog.angularindepth.com/all-you-need-to-know-about-ivy-the-new-angular-engine-9cde471f42cf https://blog.angularindepth.com/asynchronou
阅读全文