In Angular, dependency injection (DI) is a software design technique in which objects are given as dependencies rather than being hard-coded in the corresponding components. When it comes to separating the development of object logic from its use, this idea is highly useful.
The function ‘config’ makes use of DI, which must be configured in order for the module to be loaded and the application elements to be retrieved. Furthermore, this capability enables professionals to adjust dependencies according to on their needs.