0
我正在使用AngularJs來構建應用程序。在IE中,即使在致電$route.reload()
後,數據也不會刷新。但它在其他瀏覽器中工作正常。即使我測試了不同的系統,我仍面臨同樣的問題。
下面是代碼提前
Service.methodname(data1)
.success(function (data, status, header, config) {
$scope.response = data;
$('#mySchedulElection').modal('hide');
if (data == 1) {
$scope.showmessage('Election successfully saved', $scope.MessageType.success);
$route.reload();
}
}
});
感謝。
試用,$ location.refresh() ; – ozgur
對象不支持屬性或方法'刷新' - 獲取此錯誤。我注入了$ location服務 –
@ArunKumarM你必須在控制器/模塊/ factrory /指令中聲明「$ location變量,然後用它作爲$ location.refresh(); –