Puneet Kankar
What is Difference $timeout and $interval in angularjs ?
By Puneet Kankar in Angular on Jul 29 2017
  • Puneet Kankar
    Jul, 2017 29

    $timeout- $timeout is used to call a function and schedules a single call to the function . It calls another java script function after a certain time.Example - $scope. Show = function() {alert("Hii");}$timeout( function(){ $scope.show(); }, 5000);$interval-$interval is used to call a function and schedules repeated calls to the function . It calls another java script function after a certain time.$scope. Show = function() {alert("Hii");}$interval( function(){$scope.Show(); }, 5000);

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS