3
我在我的AngularJS应用程序中使用引导程序3模式作为对话确认。当我隐藏模式和重定向模态的背景仍然存在。
$scope.delete = function() {
DataService.delete()
.then(function() {
$("#delete").modal("hide");
$location.path("/");
});
}
我一直在使用上隐藏
$("#delete").on('hidden.bs.modal', function() {
$location.path("/");
}
回调尝试,但在此延迟是很多。
有没有更好的方法来做到这一点?
你也可以看看angular-ui team http://angular-ui.github.io/bootstrap/ – zethus