我想在 DeleteIndicatorConfirm 函数中关闭一个函数中的 Angular 对话框。我该怎么做??
$scope.indicatoritems = this.item3;
var modalInstance = ngDialog.openConfirm({
template: 'modaldeleteindicator',
className: 'ngdialog-theme-default',
scope: $scope,
});
}
$scope.DeleteIndicatorConfirm = function () {
};
最佳答案
看来你应该能够做这样的事情
$scope.DeleteIndicatorConfirm = function () {
ngDialog.close(modalInstance.id);
};
关于javascript - 如何关闭 Angular 对话框?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32513939/