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

Example of using ember-data in a service

$
0
0

@jesmith wrote:

I need to create a service that does data retrieval as it is data that will be used across mutliple routes (user-profile data).

I have a service created, and I have the ember-data store injected into it, but calls to the service from my components don't seem to trigger the data retrieval? I find lots of people alluding to this approach, but no examples of how it's done.

Does anyone have an example of a service being used to consume data from ember-data and make it accessible via a component?

I know routable components coming at some point makes this better, but I don't have any dates on when that is coming, and I need this functionality quickly.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4826

Trending Articles