Hello,
I’m trying to figure out how to register a custom service for injection inside my custom property panel provider.
I want to do this in the custom provider:
import myCustomPropertiesProvider from "custom-properties-provider";
where “custom-properties-provider” is the folder where index.js resides, the imported object is { __init__: "propertiesProvider", propertiesProvider: ["type", MyCustomPropertiesProvider] }
So, I get that init is used to determine the name with which I want to request the provided module, so __init__: "fooBar" means that I’ll write SomeModule.$inject = ["fooBar"].
What I don’t know (where should I look for documentation?) is how to tell the injector that I want to provide an existing instance instead of a constructor for the provided module. I mean, I want to write something like this: