angular timer directive not working with ionic framework

前端 未结 5 1523
情书的邮戳
情书的邮戳 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 18:00

    try looking at this code sample here: http://siddii.github.io/angular-timer/examples.html#/angularjs-single-timer

    starting the timer in angular is done via

    $scope.$broadcast('timer-stop');
    

    not

    element.start();
    

    BTW, your ng-app should be in the html/body tag, not in the timer tag.

提交回复
热议问题