Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: zemirco/ng-scoreboard-clock
base: e0b67bddcb
...
head fork: zemirco/ng-scoreboard-clock
compare: 25df62cdda
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
Showing with 8 additions and 2 deletions.
  1. +5 −1 README.md
  2. +2 −1  example/index.html
  3. +1 −0  example/script.js
View
6 README.md
@@ -2,14 +2,18 @@
[![Build Status](https://travis-ci.org/zeMirco/ng-scoreboard-clock.png)](https://travis-ci.org/zeMirco/ng-scoreboard-clock)
-An angular.js directive to display the current time as seen on sports scoreboards.
+An angular.js directive to display the current time as seen on sports scoreboards. Check out the [demo]().
## How to use
+Place the following code snippet anywhere inside your `html` file.
+
```html
<clock format="HH:mm"></clock>
```
+Be aware of [Internet Explorer](http://docs.angularjs.org/guide/ie) restrictions.
+
## Configuration
To format the time (you could even add the date) use the format string provided by the
View
3  example/index.html
@@ -1,11 +1,12 @@
<!doctype html>
-<html ng-app="scoreboard">
+<html ng-app="myApp">
<head>
<title>ng-scoreboard-clock</title>
<link rel="stylesheet" href="style.css"/>
<script src="./vendor/jquery-1.9.1.min.js"></script>
<script src="./vendor/angular.min.js"></script>
<script type="text/javascript" src="../index.js"></script>
+ <script type="text/javascript" src="script.js"></script>
</head>
<body>
<h1>Angular.js directive <a href="https://github.com/zeMirco/ng-scoreboard-clock">ng-scoreboard-clock</a></h1>
View
1  example/script.js
@@ -0,0 +1 @@
+angular.module('myApp', ['scoreboard']);

No commit comments for this range

Something went wrong with that request. Please try again.