Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<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();
$interval(function () {
$scope.myinterval = new Date().toLocaleTimeString();
}, 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