Skip to content

Commit

Permalink
Option for the user to specify the timer pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
bharathsekar committed Jul 29, 2016
1 parent 72a3948 commit 581fcfd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ Simple angular directive for a time ticker

#Usage
```
<timer init-duration="{{init time in milliseconds}}"></timer>
<timer init-duration="{{init time in milliseconds}}" display-pattern="{{display-pattern}}"></timer>
```
init-duration is optional and if not specified it will start from 00:00:00
init-duration is optional and if not specified it will start from 0 ms

display-pattern can be specified too, hh -> hours, mm -> minutes, ss -> seconds. If not specified the display will be hh:mm:ss format i.e. 00:00:00 format.

#Details
The directive works using the emit events
Expand Down

0 comments on commit 581fcfd

Please sign in to comment.