For my current project, I am combining TypeScript and AngularJS. One of the challenges I'm facing is how to instantiate a static member of a public class (not controller, just a normal class) with a service object. When it comes to controllers, utilizing Dependency Injection in AngularJS makes it simple to instantiate a service object. However, when dealing with a regular class, I am unsure as to how to proceed.
If anyone has any insight or advice on how to achieve this, I would greatly appreciate it!
Here is the code snippet in question:
export public Enums {
public static serviceObj; //how can I initialize serviceObj with a service?
}