---
title: "Alex Routledge (@alexroutledge) | Hashnode"
description: "Frontend Engineer. Read the latest articles by Alex Routledge on Hashnode."
url: "https://hashnode.com/@alexroutledge"
---

@alexroutledge

# Alex Routledge

@alexroutledge · Joined November 2021

Frontend Engineer

### [Using dependency injection functions instead of constructors](https://alexroutledge.hashnode.dev/using-dependency-injection-functions-instead-of-constructors?utm_source=hashnode&utm_medium=feed)

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...

2 min read · [alexroutledge.hashnode.dev](https://alexroutledge.hashnode.dev/using-dependency-injection-functions-instead-of-constructors?utm_source=hashnode&utm_medium=feed)

[Sep 28, 2022](https://hashnode.com/posts/using-dependency-injection-functions-instead-of-constructors/63341ef38cddbf7cbd29b1f5)
