I have 2 Angular apps in my web app, and I need to have a service declared in a separate file, which to be used in both apps, so I do not want it to be bound to any specific app. I do not care if it will be one instance of service per app or single common instance, I just do not want to duplicate my service code.
How can I declare service outside of app and then bind it to specific app? All examples of services/factories declarations I saw started from module reference like module.service(...)
.