---
title: "Discussion on \"Leveraging Dependency Injection to reduce duplicated code in Angular\" | Hashnode"
description: "Discussion on \"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"
url: "https://hashnode.com/posts/leveraging-dependency-injection-to-reduce-duplicated-code-in-angular/624b7e2e4b4dde0dc0beb71d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Leveraging Dependency Injection to reduce duplicated code in Angular](https://hien.page/leveraging-dependency-injection-to-reduce-duplicated-code-in-angular?utm_source=hashnode&utm_medium=feed)

How to eliminate duplicated code when getting route params, query params or data from Activated Route in Angular by using dependency injection

Apr 4, 2022 · 5 min read · hien.page  
Read the article

-   [#angular](https://hashnode.com/tag/angular)
-   [#dependency-injection](https://hashnode.com/tag/dependency-injection)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#webdevelopment](https://hashnode.com/tag/webdevelopment)

## Written by

[Hien Pham](https://hashnode.com/@hienpham)

@hienpham · Ho Chi Minh city, Viet Nam

  
[View profile](https://hashnode.com/@hienpham)

Front-end web developer @Inspectorio

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
