Binding Types

Singleton: A single instance is created and shared.

Eager Singleton: Similar to Singleton but instantiated as soon as the module is loaded.

Instance: A specific instance that you pass to the module will be injected.

Default: If you don't specify any binding, the class will be created automatically whenever an object needs it.

Custom: You can create custom providers to allow you to do more advanced stuff.

Last updated