Skip to content
This repository has been archived by the owner on Mar 15, 2023. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbvm committed May 22, 2018
1 parent fc2c0d0 commit fd88cb1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ To use the service, inject it into your route, component, service or other part
Suppose your application adapter has `/api` as namespace and you have a model called `user` and you want to check if an username already exists:

```javascript
import Ember from 'ember';
import Service, { inject as service } from '@ember/service';

export default Ember.Service.extend({
api: Ember.inject.service(),
export default Service.extend({
api: service(),

usernameExists(username) {
return this.get('api').request('check-username', {
Expand Down

0 comments on commit fd88cb1

Please sign in to comment.