From fd88cb1cb9323c81f6ae8e158f9a84e5d8d1405b Mon Sep 17 00:00:00 2001 From: Jacob van Mourik Date: Tue, 22 May 2018 15:18:12 +0200 Subject: [PATCH] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 06b3dee..c2da37f 100644 --- a/README.md +++ b/README.md @@ -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', {