William D. Ivancic

Results 7 comments of William D. Ivancic

When I used the timer as a directive in Ionic 1 Framework, I has to broadcast events as $rootScope.$broadcast in order to for the directive to see them. However this...

The answer is yes. But how is determined by how you are using angular-timer. If the following does not work please provide more detail such as using Angular 1 or...

You can also use getElementByID see: https://github.com/siddii/angular-timer/commit/d39ccef6695e7acf80506509039b4365b56eca78

I'm using a similar time in an ionic pluging. I started with angular-timer, but didn't need such an extensive directive. Also, I pulled it to use as a stand-alone factory...

When I used as directive, I has to broadcast events as $rootScope.$broadcast in order to receive them in my App via controller and use commands like $scope.$broadcast('timer-stop using document.getElementsByTagName('timer')[0].stop(); resolved...

If you want autostart, remove it. Here is the code. if ($scope.autoStart === undefined || $scope.autoStart === true) { $scope.start(); in index.html: In apps.js angular.module('app', ['ionic', 'app.controllers', 'app.routes', 'app.services', 'app.directives',...