<!DOCTYPE html>
<html ng-app="lesson" ng-controller="lesson2" ng-init="id=1;name='qw';name1=['21','1qwe2']; namm={'a':1,'b':'wqd'} ">
<head>
<meta charset ="UTF-8">
<title>Document</title>
</head>
<body>
<ul>{{ow}}</ul>
<script type="text/javascript" src="angular-1.5.5/angular.min.js"></script>
<script type="text/javascript">
var app=angular.module("lesson",[]);
app.controller("lesson2",function($scope){
var now1=new Date();
$scope.ow=now1.getHours()+':'+now1.getMinutes()+":"+now1.getSeconds();
$scope.SetTimer=function(){
$scope.$apply(function(){
var now=new Date();
$scope.ow=now.getHours()+':'+now.getMinutes()+':'+now.getSeconds()
})
}
$scope.SetTimerInterval=setInterval($scope.SetTimer,1*1000);
})
</script>
</body>
</html>