Optimise ng-bind directive in angularjs
问题 In my angular js app I have an array of objects $scope.time which contain a name, the current time and another defined time in milliseconds. In the front-end I'm using ng-bind to calculate the difference between these two time and display it in H:m:s format. Please run the code below. var app = angular.module('angularapp', []); app.filter("msTotime", function() { return function(timee,started,ended) { var startDate = new Date(started); var endDate = new Date(ended); var milisecondsDiff =