Skip to content

Miscellaneous

inject()

inject() — returns void

Available in: controller

Declare one or more services for injection into this controller. Call in config(). Services are resolved when the controller instance is created.

NameTypeRequiredDefaultDescription
namestringyesComma-delimited list of registered service names to inject.