在Angular的自定义Component中实现双向数据绑定

有一篇讲的非常透彻: https://oomusou.io/angular/ngmodel/ 以下是应用举例: 在component.ts中,双向绑定的字段这么写: 1 2 3 4 5 6 7 @Input() topicSelection: string; @Output() topicSelectionChange = new EventEmitter(); public change() { this.topicSelectionChange.emit(this.topicSelection); } 在html

NgModule中import、declarations、providers的区别

imports makes the exported declarations of other modules available in the current module declarations are to make directives (including components and pipes) from the current module available to other directives in the current module. Selectors of directives, components or pipes are only matched against the HTML if they are declared or imported. providers are to make services and values known to DI (dependency injection). They are added to the root

在Ionic4中创建Component

创建component : 1 ionic g component my-component component必须被封装成为module才能使用,添加一个module: 1 ionic g module my-component 在 my-compon

5G到底能做什么

ITU定义的5G三大场景 eMBB(enhanced mobile broadband) 增强的移动宽带: 5G能提供极快的传输速度,峰值速度可达10Gbps,大范围覆盖不低于100Mbps速率,能达到

Typescript开发小记

概念,TypeScript + NPM + Webpack TypeScript是微软开发的开源语言,是Javascript的一个超集,设计用来开发大型应用,可以编译

Callback to Promise

最近几天在用Typescript写一个基于Web的可视化的海报编辑器,核心是使用fabricjs进行canvas的绘制; 看到这个创建图片对象

2002-2019于砦最后的回忆

于寨村位于伊河路与工人路交叉口东南角,村南是金水河,村东与嵩山饭店、河南工业大学为邻,村西是工人路,村北是林山寨; 因与粮院一墙之隔的优越的地

Hugo微调

这里记录一下安装Hugo后做的一些小调整: 中文换行问题 Hugo默认情况下会忽略换行,转为空格,排版就不是很方便,可以修改配置文件解决,添加: