Socket
Socket
Sign inDemoInstall

ember-clock

Package Overview
Dependencies
186
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1 to 0.0.2

CHANGELOG.md

3

addon/initializers/clock.js
/*
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc