上一页 1 ··· 50 51 52 53 54 55 56 57 58 ··· 69 下一页
摘要: 更新 : 2019-06-29 自从 pwa 一推出开始玩了一把,一直到现在才真的有项目需求... 重新整理了一下. https://angular.io/guide/service-worker-getting-started 跟着 get start 走,基本上 3 个 command 就搞定了 阅读全文
posted @ 2018-01-03 22:38 兴杰 阅读(3099) 评论(0) 推荐(0)
摘要: Portal 的主要使用场景是 dynamic component 动态的插入模板或组件. Portal 可分为 2 种. 进入和出去 (in or out) ComponentPortal, TemplatePortal 属于第一种 in PortalOutlet 属性 out TemplateP 阅读全文
posted @ 2017-11-12 11:10 兴杰 阅读(1341) 评论(0) 推荐(0)
摘要: 简单说就是 js 的 media query. 1. BreakpointObserver ng 还包装了一个 observe 方便我们监听 view port 的变化. 此外 ng 也依据 material 的标准提供了一个 enum 方便我们写匹配. 2. MediaMatcher 这个是底层服 阅读全文
posted @ 2017-11-12 11:00 兴杰 阅读(1637) 评论(0) 推荐(0)
摘要: 使用 cdkObserveContent 能让我们监听到 ng-content 内部的变化. 比如某个值换了,或则某个 element 被移除了等等. 在 onpush 的情况下, 通常上面这种 ng-content 的设计, 我们会希望如果 content 改变了, 当前模板也 detechcha 阅读全文
posted @ 2017-11-12 10:40 兴杰 阅读(572) 评论(0) 推荐(0)
摘要: 更新 : 2019-11-29 在使用 focus monitor 的时候要小心, Expression has changed after it was checked 错误 原因是因为 focus monitor 监听的方式是 runOutsideAngular + list focus or 阅读全文
posted @ 2017-11-10 22:00 兴杰 阅读(4465) 评论(0) 推荐(0)
摘要: 更新 : 2020-05-22 https://stackoverflow.com/questions/36866057/c-sharp-tool-that-formats-an-html-string-before-sending-it-to-the-client 手动调用 mini html 也 阅读全文
posted @ 2017-11-06 12:58 兴杰 阅读(1861) 评论(0) 推荐(0)
摘要: 2022-05-20 更新 看这篇 ASP.NET Core – ViewComponent refer : https://docs.microsoft.com/en-us/aspnet/core/mvc/views/view-components core 和 Angular 的 compone 阅读全文
posted @ 2017-10-29 09:06 兴杰 阅读(1784) 评论(0) 推荐(0)
摘要: refer : https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-7 out 可以写在里面了 Local functions, 终于有了, 写习惯 js 的我超爱 getter setter 阅读全文
posted @ 2017-10-27 12:43 兴杰 阅读(300) 评论(0) 推荐(0)
摘要: 更新: 2021-06-29 什么时候用 singleton, scope, transient https://stackoverflow.com/questions/38138100/addtransient-addscoped-and-addsingleton-services-differe 阅读全文
posted @ 2017-10-27 12:08 兴杰 阅读(573) 评论(0) 推荐(0)
摘要: 更新: 2023-04-08 请移步修订版 : ASP.NET Core – Upload and Download Files (上传和下载文件) 更新: 2021-06-14 改用 image sharp 来处理图片了. https://www.cnblogs.com/keatkeat/p/14 阅读全文
posted @ 2017-09-25 23:22 兴杰 阅读(7224) 评论(0) 推荐(2)
上一页 1 ··· 50 51 52 53 54 55 56 57 58 ··· 69 下一页