Leveraging Dependency Injection to reduce duplicated code in Angular
How to eliminate duplicated code when getting route params, query params or data from Activated Route in Angular by using dependency injection.
The duplication pattern
In some projects that I recently worked on, there's a block of code that is used i...
hien.page5 min read