Last updated
Last updated
Angel uses Emil Persson's for DI. Dependency injection makes it easier to build applications with multiple moving parts, because logic can be contained in one location and reused at another place in your application.
You can also inject within a RequestContext
.
As you can imagine, this is very useful for managing things such as database connections.
Controller
s have dependencies injected without any additional configuration by you. However, you might want to inject dependencies into the constructor of your controller.