@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