Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

hasaftab's avatar

How to Cancel $timeout function after load response in it angular js


  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

0 likes
2 replies
hasaftab's avatar

Hi, But where should put this line inside this function.?

Please or to participate in this conversation.