Vote count:
0
I am trying to alert() if this countdown timer {{sale.vtimer | date:'mm:ss'}} went 00:00:
$scope.updateVtimerValue = function (vtimerValue){
$.each(vtimerValue, function(k, v) {
for (var i =0; i < $scope.sales.length ; i ++) {
if($scope.sales[i].orderid == v.orderid){
var nDate = Date.now();
var nTime = Date.parse(v.xtime);
$scope.sales[i].vtimer = nTime - nDate;
}
}
});
}
<tr ng-repeat="sale in sales" ng-cloak>
<td>{{sale.vtimer | date:'mm:ss'}}</td>
</tr>
asked 1 min ago
Angularjs - How to check if time 00:00 in my case?
Aucun commentaire:
Enregistrer un commentaire