I'm trying to make a timer in javascript, a very simple one. I wrote a bit of code that should have worked afaik, yet it doesn't, so I did something wrong. I cant figure out what I did wrong. after a second it changes the value of the textbox to NaN.
Here is the code:
<timer countdown='timeBonPlan' interval="1000" >{{days}} Jours, {{hours}}:{{minutes}}:{{seconds}}</timer>
and in my controller
$scope.timeBonPlan = 3765915.979;
i have use parseFoalt but it doesn't work when i set the value in the html page its work
countdown='timeBonPlan'should just work. i think issue was with floating value. please assign integer value