angular-timer icon indicating copy to clipboard operation
angular-timer copied to clipboard

Dynamically set autostart using ng-attr

Open samuelpetroline opened this issue 9 years ago • 1 comments

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?

samuelpetroline avatar Jan 13 '17 18:01 samuelpetroline

I am also faced this issue. Need solution.

karthikn2510 avatar Aug 06 '20 05:08 karthikn2510