how to call function every 2 mins

后端 未结 5 1421
野的像风
野的像风 2021-01-17 16:30

how to call a save function every two mins in anular js. please Help me.

 $scope.save = function () {
        $http({
        url : \'/api/products\',
             


        
5条回答
  •  梦谈多话
    2021-01-17 16:49

    You could try using the $interval service.

    In case you need something more accurate, consider using an external library.

提交回复
热议问题