I have an angular template with the following notification:
In the controller when the save button is clicked I have:
which works. However, when I try and access the control via the ControllerAs syntax:
I get the error "Cannot read property "show" of undefined".
Can you tell me what I am doing wrong?
<div kendo-notification=
"saveNotification"
>
</div>
In the controller when the save button is clicked I have:
$scope.saveNotification.show(
"Hello"
,
"World"
);
which works. However, when I try and access the control via the ControllerAs syntax:
var
vm =
this
;
vm.saveNotification.show();
I get the error "Cannot read property "show" of undefined".
Can you tell me what I am doing wrong?