In terms of terminology, factories can create services, and suppliers provide services to the components that request them. If some of your services depend on another service, then, of course, there must be some alternative performance of services and providers. Making sure all these things happen in the correct order to allow all services to be created is work on injecting Angular dependencies.
The question arises: why are you interested in what order do factory functions work in? If you correctly state your dependencies and your services are not properly connected, Angular should take care of you. The only exotic case you may encounter is a circular addiction, which you can see here here .
source
share