Showing: 1 - 5 of 5 Articles

How to display ticking clock with differnce time from specific time (hours , minutes and seconds) in AngularJS?

Directive code : app.directive(‘clock’, [‘dateFilter’, ‘$timeout’, function (dateFilter, $timeout) { return { restrict: ‘E’, scope: { format: ‘@’, }, link: function (scope, element, attrs) { var updateTime = function () { //GET UTC DATE TIME BY USING MOMENT JS var now = moment(new Date()).utc().format(‘YYYY-MM-DD HH:mm:ss’) …