W3cubDocs

/Ember.js 4

Function

inject (name) ComputedDecorator public

Module: @ember/service

Available since v1.10.0

import { inject } from '@ember/service';
name
String
(optional) name of the service to inject, defaults to the property's name
returns
ComputedDecorator
injection decorator instance

© 2022 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember/4.9/functions/@ember%2Fservice/inject