angular-timer
angular-timer copied to clipboard
Defining End Time with angular
How do i set the value of the endtime dynamically?
Something like this does not work:
< timer end-time="{{object.time}}" >{{days}} days, {{hours}} hours, {{minutes}} minutes, {{seconds}} seconds.< /timer >
I put in the spaces because in the last issue github escaped the timer tags
Have you tried without the {{
syntax? Usually, attributes prefer binding to the object itself rather than what it evaluates to:
<timer end-time="object.time" ..
Side note: You can avoid the escaping by using the ` key on each end of code. If you have a block of code, you can surround it with ```.
I have the same issue, with or without {{ }}
syntax. Is there anyway to allow two-way-binding for these attributes, it would make the module very useful. Thanks.
my fix is to parseInt my variable and add it without {{}} syntax. for example:
$scope.mytime = parseInt('1430604000000');
<timer end-time="mytime" ..
that fixed the problem for me
I have this issue as well and none of the above solutions worked for me. A notice would have been nice since this directive loses a lot of value without supporting dynamic values.
same here .. no solution works
+1
same problem with or without {{}}. Useless without data-binding.
yeap.
+1
+1
+1
same here !!
+1