genericuser
genericuser

Reputation: 1450

Notification Aurelia-KendoUI-bridge with Typescript

View:

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

ViewModel:

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

However, the this.popupNotification has no reference in the .ts file. How can I add use it in ViewModel to show the popup?

Upvotes: 0

Views: 195

Answers (1)

genericuser
genericuser

Reputation: 1450

Declared the variable with the same name as id. and it worked fine.

popoupNotification;

Upvotes: 1

Related Questions