Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lozjackson committed May 4, 2024
1 parent 17f9615 commit 3e29d25
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,24 @@ This is an Ember-cli addon that provides a clock service. The clock synchronizes
the local host system clock and can be used to display the time or to update time
sensitive properties.

## Compatibility

2.x requires Ember 4+ and Node 18+

## Breaking Changes in 2.0.0

v2.0.0 removes implicit injections as these are deprecated in Ember 3.x and removed
in Ember 4.x. You must explicitly inject the clock service like so:

```
import Component from '@glimmer/component';
import { service } from '@ember/service';
export default class MyComponent extends Component {
@service clock;
}
```

## Demo

http://lozjackson.github.io/ember-clock/
Expand Down

0 comments on commit 3e29d25

Please sign in to comment.