[英]How to adding value on Angular-timer
i am new in AngularJs... I am using http://siddii.github.io/angular-timer/ 我是AngularJs的新手...我正在使用http://siddii.github.io/angular-timer/
<timer interval="1000">{{hours}} hour{{hoursS}}, {{minutes}} minute{{minutesS}}, {{seconds + 2}} second{{secondsS}}.</timer>
Here i am adding +2 in second in it will counting 62 second but i need only 60 and counting is start from 2 sec. 在这里,我在秒中添加+2,这将计算62秒,但我只需要60秒,计数从2秒开始。
Sorry for my bad English 对不起,我的英语不好
I think you're not supposed to add two seconds in the view. 我认为您不应该在视图中添加两秒钟。 If you want counting to be started from 2 seconds you should find another way. 如果要从2秒开始计数,您应该找到另一种方法。 Maybe you could use addCDSeconds, (see http://siddii.github.io/angular-timer/ ), or the start-time attribute. 也许您可以使用addCDSeconds(请参阅http://siddii.github.io/angular-timer/ )或start-time属性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.