Using dependency injection functions instead of constructors
Sep 28, 2022 · 2 min read · Introduction Starting in Angular 14, we can use the new inject function in components, directives and pipes. There are several benefits in using this approach as it significantly improves the readability and reusability of our code. For example, inst...
Join discussion