Questions tagged [angular-timer]

Angular Timer is a library for creating built-in timers in AngularJS

Directives in AngularJS is a powerful way of building reusable UI components. This simple project will serve as a sample/reference implementation demonstrating its flexibilities by making it inter-operable across runtime (AngularJS, plain simple JavaScript & jQuery). Documentation.

24 questions
4
votes
2 answers

Angular Timer not working

I want to display a count down timer.I have been referring the following page http://siddii.github.io/angular-timer/ But i am getting the below error. Error: Invalid isolate scope definition for directive timer: @? Could anybody tell me what i am…
Nisha shetty
  • 121
  • 3
  • 7
3
votes
1 answer

How to get current time from Angular Timer

I am testing the Angular Timer and have found myself wondering about how to get the current time inside my controller in order to use it to whatever purpose I might have. For instance, I want to set the font color of the timer to red when it reaches…
Kutyel
  • 8,575
  • 3
  • 30
  • 61
2
votes
4 answers

create a stopwatch in angular 6

I am using angular. I want to implement stopwatch. I have a list which consists of one or more objects. I have a start timer and end the timer button for each item. when I click on the start button this should start the timer for the specific item &…
lakhan
  • 255
  • 7
  • 14
2
votes
1 answer

Does canceling a $timeout in the following 'then' function work?

I do this kind of all the time and I'm not too sure it works. If it does, How can I check? If it doesn't whats a better method of canceling a timeout after it's completed? var delay = $timeout(function() { for (i = 0; i <…
Armeen Moon
  • 18,061
  • 35
  • 120
  • 233
2
votes
1 answer

angular-timer with webpack

I tried using angular-timer with webpack, es6 and the npm modules of moment and humanize-duration My implementation would be: import 'moment'; import 'humanize-duration'; import 'angular-timer'; And I get the error ReferenceError: humanizeDuration…
Yves
  • 1,152
  • 1
  • 23
  • 30
1
vote
1 answer

how do multiple timer countonw in mat table angular

I'm trying to make a table in which there will be some kind of time counter for each row. i used "mat-progress-bar" with dynamic value, but i cant customise each timer for is correspondant row. what i want is when i add a row the timer must start…
1
vote
1 answer

make unique timer for each ngFor item

I am using angular. I have created custom stopwatch. I am managing the start/end button for each ngFor item. but not able to manage unique timer for each ngFor item. in the above image, I have different start/end button each item. when I click on…
lakhan
  • 255
  • 7
  • 14
1
vote
3 answers

angular js timer function not working on stop button

I am learning angular js now for that purpose i have written sample test application with angular Js using timer function init ... when ever i run the app in browser i am able to start the counter and when i click on the stop button, I am not able…
Glory Raj
  • 17,397
  • 27
  • 100
  • 203
1
vote
0 answers

How to test angular-timer with gulp-cdnizer test option

I have the following gulp code for gulp-cdnizer. I would like to ensure that angular-timer is working by specifying a test option as I did for angular in the example below. How can I specify the test option for angular-timer? gulp.task('html',…
Stalin Kay
  • 577
  • 8
  • 18
1
vote
1 answer

Angular Material app - delayed changes

I was developing a simple stopwatch app using AngularJS + Angular Material + Electron, and somehow the data changes/watches were being delayed, until another UI interaction takes place (?) This had never happened before when I was using Bootstrap,…
1
vote
5 answers

Angular Timer directive not working

I want a timer of 1 minute which should stop as soon as it reaches 1 minute and should call a function then. I am using angular-timer directive for this. The code I am using in html is {{days}} days, {{hours}} hours,…
Neha Gupta
  • 987
  • 5
  • 16
  • 35
1
vote
0 answers

Angular-timer siddii

in my web app (which is with angularJs in the front part and with Symfony2 in the back part) i need to integrate a timer (count down of a quizzer) i found this timer https://github.com/siddii/angular-timer on github and it seems to be cool but i…
Alouini Khalil
  • 655
  • 5
  • 16
0
votes
0 answers

How to use timer with socket.io factory in angular js?

I am trying to use timer with socket.io in angular js but its not working. I am able to send data from node server to client, also i am getting the alert properly but my timer is not working. Angular Code var app = angular.module('MyTimerApp',…
Naddy
  • 21
  • 6
0
votes
2 answers

Why unable to Clear the SetInterval in javascript ? is this approach is wrong?

In one of my app, angular based application have written the user session time put if user gets idle for 10 minutes , gets the warning pop up in 5th minute and after 10 minutes , needs to logout. This below code is working properly for the…
0
votes
0 answers

angular timer unable start multiple timers separatly

I use ng-repeat in uib-tabset and in each tab is timer. Each timer has a Start button so each timer can be started on some action.
Kicker
  • 606
  • 1
  • 12
  • 27
1
2