I have a number of seconds count, for example, 713 seconds. How can I implement an Angular.js filter that converts this 713 seconds to HH:mm:ss format? In this case, it shou
Try this:
app.filter('secondsToHHmmss', function($filter) { return function(seconds) { return $filter('date')(new Date(0, 0, 0).setSeconds(seconds), 'HH:mm:ss'); }; })
html:
{{seconds | secondsToHHmmss}}