Hello,
Is there a way to define something like an AngularJs ng-click handler for your toolbar buttons, so that you don't have to manually call $apply?
As an example, here is what I currently do:
Thanks,
Lars
Is there a way to define something like an AngularJs ng-click handler for your toolbar buttons, so that you don't have to manually call $apply?
As an example, here is what I currently do:
$scope.paymentToolbarOptions = {
items: [{
type:
"button"
, id:
"manualIr"
, text:
"Manual IR"
, overflow:
"always"
}...],
click:
function
(e) {
if
(e.id ===
"manualIr"
) {
$scope.$apply(
function() { $scope.payManualIr(); });
}
}
};
Thanks,
Lars