Angular-styleguide: Service used by layout module

Created on 22 Feb 2016  路  3Comments  路  Source: johnpapa/angular-styleguide

In case you have to create a service that is used from the controller of the layout module (e.g. Shell) where would you add it? In the core service or in a dedicated one inside the layout module?

Thanks

Angular 1 question

Most helpful comment

While I am thinking it again and again, I conclude to the following:
Since the layout _is_ a module, everything that applies to the other modules should be valid for the layout also. Thus, the service should go to the layout module in that case. What do you think?

All 3 comments

Good question. I'm struggling with the same concept.

I'm waiting for the answer too.

While I am thinking it again and again, I conclude to the following:
Since the layout _is_ a module, everything that applies to the other modules should be valid for the layout also. Thus, the service should go to the layout module in that case. What do you think?

Was this page helpful?
0 / 5 - 0 ratings