Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4828

Do Glimmer components receive injections from the ApplicationInstance?

$
0
0

@skaterdav85 wrote:

I noticed that Glimmer components don’t receive service injections from the inject method on the ApplicationInstance like in instance initializers. For example, session will be undefined in a Glimmer component with the following in an instance initializer:

instance.inject('component', 'session', 'service:session')

Is this because @glimmer/component doesn’t extend from EmberObject?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles