2016-05-27 17 views
0

查看:通知奧裏利亞-KendoUI橋與打字稿

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

視圖模型:

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

然而,this.popupNotification在當.ts文件沒有提及。如何添加在ViewModel中使用它來顯示彈出窗口?

回答

1

聲明與id具有相同名稱的變量。它運行良好。

popoupNotification;