Call function at some interval in AngularJS

on Jul 17, 2020 12:01 AM


I have one form

i need to call save function automatically after 1 hr 30 minutes even if i have not clicked Save button

1) Display timer ex: i need to call save function automactically after 1:30 hour 

so page display timer remaining time 1:30

once time expire need to call save function and also even if i am try to submit save button allow to save

Could you please help me

<html xmlns="">
    <link rel="stylesheet" href="" />
    <script type="text/javascript" src=""></script>
    <script type="text/javascript">
        var app = angular.module('MyApp', [])
        app.controller('MyController', function ($scope, $http, $window) {

            $scope.Save = function () {
<body ng-app="MyApp" ng-controller="MyController">

   <input type="button" ng-click="Save()"  value="Save"/>



Download FREE API for Word, Excel and PDF in ASP.Net: Download
on Jul 17, 2020 07:59 AM
on Jul 18, 2020 04:19 AM