Hi,
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="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.5/angular.js"></script>
<script type="text/javascript">
var app = angular.module('MyApp', [])
app.controller('MyController', function ($scope, $http, $window) {
$scope.Save = function () {
alert("Clicked");
}
});
</script>
</head>
<body ng-app="MyApp" ng-controller="MyController">
<input type="button" ng-click="Save()" value="Save"/>
</body>
</html>