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

About Injecting a service in model

$
0
0

@indvinoth wrote:

Recently myself and a friend of mine had discussion about injecting a service inside a model. We knew that model are just used to represent and store data but my friend was just curious to know what's wrong and downside of injecting a service inside a model. His argument is if service is injected to a model we can use that service to retrieve data?

Could some one please explain briefly is it a good practice to use a service in a model?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4836

Trending Articles