【发布时间】:2016-04-01 19:45:29
【问题描述】:
我的模态显示很好。我试图弄清楚当模态显示时如何运行一个函数。
var = loginModal = $modal({ placement: 'left', title: '', content: webauth, show: false });
$scope.$on('modal.show', function () {
console.log("SHOWN");
debugger;
});
$scope.showModal = function () {
loginModal.$promise
.then(loginModal.show);
};
我期待 $scope.$on('modal.show') 在显示模式时触发,但到目前为止还没有运气。
【问题讨论】:
标签: javascript modal-dialog angular-strap