A
A
Abc Edc2015-05-08 08:24:06
Angular
Abc Edc, 2015-05-08 08:24:06

Does it make sense in angular to make some kind of service for all other services?

That is, for example, a service for sending a request, given that basically in not complex projects each module has a controller and a service with sending a request, then it might be easier to make one service in the main module and call it from all controllers? and this applies not only to this case, whether it is worth taking out something that is often used.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kano, 2015-05-08
@gleber1

It is better to move all interaction with api into a separate module and services (for each service entity)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question