angular timer directive not working with ionic framework

前端 未结 5 1518
情书的邮戳
情书的邮戳 2021-01-17 17:13

I am having issues with implementing the angular timer directive with the ionic framework. http://siddii.github.io/angular-timer/

When I implement the code using bow

5条回答
  •  情歌与酒
    2021-01-17 17:49

    I decided to not user the angular-timer directive as I was having issues with it reseting when ever I would change tabs as you can see from this example here.

    Instead I based my timer of this fiddle.

    You can see my final result in this pen. Which loads a timer in ionic, and maintains counting even whilst changing tabs. Going forward, would probably want to add some more changes to it such as can only click stop when the timer has started etc.

            
    
        
    

提交回复
热议问题