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

Related issues

Foxandxss picture Foxandxss  ·  13Comments

kdekooter picture kdekooter  ·  8Comments

MrOutput picture MrOutput  ·  5Comments

majj picture majj  ·  4Comments

xavhan picture xavhan  ·  5Comments