AngularJS Amplitude Service Not Acting as Singleton
问题 I have recently posted a similar question, but this is not a duplicate. Apologies for the code heavy post but I wanted to provide as much context as possible. I am having an issue with defining the analytics tool, 'Amplitude' as a service in my Angular.js application. Services are supposed to act as singletons throughout an application (source), so I am confused to be getting the following behavior. In my app.js file, I call AmplitudeService.logEvent('EVENT_NAME') in a .run function which