Angular and Zone for Digest
Demonstrates using Zone to avoid having to call $scope.apply() in Angular apps
HTML
<div ng-app="myApp" ng-controller="myController">
{{timer.time | date:'HH:mm:ss'}}
</div>
JavaScript
var externalTimeObj = {
time: new Date()
};
setInterval(function() {
externalTimeObj.time = new Date();
}, 1000);
var app = angular.module("myApp", []);
app.value("timerObj", externalTimeObj);
app.controller("myController", function($scope, timerObj) {
$scope.timer = timerObj;
});