angular-timer
angular-timer copied to clipboard
Dynamically set autostart using ng-attr
Is it possible to dynamically set "autostart" attribute using ng-attr?
For example:
<timer ng-attr-autostart="{{myVar.Status == 2 && 'true' || undefined}}" interval="1000">{{hhours}}:{{mminutes}}:{{sseconds}}</timer>
In my case, it won't autostart even when the evaluation is true. Is there anything else I should do?
I am also faced this issue. Need solution.