I guess this is a 2 part question; but I'll start by explaining the problem I'm having.
I have an Angular project, and 3 classes, which are not 'part' of the Angular framework. The first question - is whether it's recommended to pull an instance of Angular within one of those classes, just to grab certain data from a singleton service.
And second - is there a way to 'incorporate' these classes more deeply into the Angular framework. I don't want to create them as services, because they are not meant to be singletons.
It's just frustrating, because it's so easy to grab a service within Angular - ie. just passing it's reference to a controller. With the external (external to the Angular framework) class/object, there is no reference I can pass. And the class/object in question, is not being called/initialized from within Angular, so I can't just pass the service reference directly.
Ideas?