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