ember-clock
Advanced tools
Comparing version 0.0.1 to 0.0.2
/* | ||
Inject the clock service into all controllers and components | ||
*/ | ||
export function initialize( app ) { | ||
export function initialize() { | ||
const app = arguments[1] || arguments[0]; | ||
app.inject('controller', 'clock', 'service:clock'); | ||
@@ -6,0 +7,0 @@ app.inject('component', 'clock', 'service:clock'); |
@@ -6,3 +6,3 @@ { | ||
"url": "https://github.com/lozjackson/ember-clock", | ||
"version": "0.0.1" | ||
"version": "0.0.2" | ||
}, | ||
@@ -9,0 +9,0 @@ "files": { |
{ | ||
"name": "ember-clock", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Clock service for Ember", | ||
@@ -5,0 +5,0 @@ "directories": { |
# ember-clock | ||
This is an Ember addon that provides a clock service. The clock synchronises to the local host system clock every second. The clock can be used to display the time or can be used to update time sensitive properties. | ||
This is an Ember addon that provides a clock service. The clock synchronises to the local host system clock and can be used to display the time or can be used to update time sensitive properties. | ||
@@ -32,12 +32,7 @@ ## ClockService | ||
// this property will update every minute | ||
eventStatus: Ember.computed( 'clock.minute', 'event.status', function () { | ||
this.get('clock.minute'); | ||
return this.get('event.status'); | ||
status: Ember.computed( 'clock.minute', 'model.status', function () { | ||
return this.get('model.status'); | ||
}) | ||
``` | ||
``` | ||
{{event-viewer status=eventStatus model=event}} | ||
``` | ||
## Installation | ||
@@ -44,0 +39,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
146221
39
1654
43