Level 18
This is in the docs.. https://docs.angularjs.org/api/ng/service/$timeout
To cancel a timeout request, call $timeout.cancel(promise).
In tests you can use $timeout.flush() to synchronously flush the queue of deferred functions.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
promise = $timeout(function () {
console.log("Timeout")
$scope.invupdateverify($rootScope.ven_report);
// console.log($scope.invupdateverify)
}, 80000);
I want to cancel this timeout function after loading $scope.invupdateverify($rootScope.ven_report); <--- this function in it without any button
Please or to participate in this conversation.