I'm following todd motto's styleguide for angular. And in his approach, and in john papa's approach as well, they say each component should have its own services in which they depend.
My question is, what happens when I have a service (e.g. getArticlesByStoreId) that I want to use from different components that do not relate to each other. From this styleguides, I would understand that I have to rewrite my service file into both components, but I think I could have a "sharedServices/" for all those shared services so I don't end up rewriting code.
What would you guys do in this case?
app/
|--components/
|--comp1/
|--service.js
|--comp2/
|--service.js
or
app/
|--components/
|--comp1/
|--comp2/
|--services/
|--sharedServices/
|--service.js