Using dependency injection functions instead of constructors
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...
Sep 28, 20222 min read665