new Injector()
Static class used to init injectable items and inject them.
Methods
-
<static> initConfig(data, category)
-
Init inject category using config
Parameters:
Name Type Description dataminiinjector.InjectConfig config categorystring | undefined category of the item -
<static> injectById(id [, category])
-
Inject item by id
Parameters:
Name Type Argument Description idstring id of the item categorystring | undefined <optional>
category of the item Returns:
injectable item- Type
- miniinjector.AbstractInjectable | null