2016-05-27 8 views
0

Ausblick:Mitteilung Aurelia-KendoUI-Brücke mit Typoskript

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

Ansichtsmodell:

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

jedoch die this.popupNotification keinen Hinweis in der .ts-Datei hat. Wie kann ich hinzufügen, verwenden Sie es in ViewModel, um das Popup anzuzeigen?

Antwort

1

Deklarierte die Variable mit dem gleichen Namen wie ID. und es hat gut funktioniert.

popoupNotification;