带有 Typescript 的通知 Aurelia-KendoUI-bridge

Notification Aurelia-KendoUI-bridge with Typescript

查看:

<ak-notification id="popupNotification"
               k-widget.bind="popupNotification"></ak-notification>

视图模型:

this.popupNotification.show('error message', 'error');

但是,this.popupNotification 在 .ts 文件中没有引用。如何在 ViewModel 中添加使用它来显示弹出窗口?

声明了与id同名的变量。而且效果很好。

popoupNotification;