目前我正在尝试找出如何处理 angular2 中的 window:onresize 事件。我已将其嵌入到这样的组件模板中:
<div class="signaturepadContainer" (window:resize)="onResize($event)">
并处理 ts 文件中的事件,如
onResize(event: any){ ...dosomethingterrible... }
在我的“事件”参数中,我在“curenTarge”、“源”和“目标”中引用了“窗口”,但没有引用我的 div。
我哪里错了?