Angular DI: Using Inject Instead of Constructor
As we learned in my previous article, we can now use the inject() function inside components, directives, and pipes. Here are the reasons I…