Welcome aboard! We are happy you are here and wish you good net-raft!
<html>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<body>
<div ng-app="myApp" ng-controller="my1">
<h1>{{myinterval}}</h1>
</div>
<script>
var app = angular.module('myApp', []);
app.controller('my1', function ($scope, $interval) {
//$scope.myinterval = new Date().toLocaleTimeString();
$scope.myinterval = 0;
$interval(function () {
$scope.value = $scope.myinterval + 1;
$scope.myinterval = $scope.value;
}, 1000);
});
</script>
</body>
</html>
The most helpful ANGULARJS solutions
How to get client ip address using angularjs ?ANGULARJS Click to see more ... 19.3K 2.8K