---
title: "Nhan Nguyen (@hoainhaannguyen) | Hashnode"
description: "Makes difficult things seem easy. Read the latest articles by Nhan Nguyen on Hashnode."
url: "https://hashnode.com/@hoainhaannguyen"
---

@hoainhaannguyen

# Nhan Nguyen

@hoainhaannguyen · Vietnam · Joined November 2023

Makes difficult things seem easy

[Website](https://nhannguyen-profile.vercel.app/)

### [Understanding Angular Injection Context and Signal equality functions](https://nhannguyen.hashnode.dev/understanding-angular-injection-context-and-signal-equality-functions?utm_source=hashnode&utm_medium=feed)

Dependency Injection (DI) is a pivotal design pattern that empowers developers to decouple their code, facilitating easier reuse of classes and services. In the context of Angular, DI plays a crucial role in supplying dependencies to components, dire...

2 min read · [nhannguyen.hashnode.dev](https://nhannguyen.hashnode.dev/understanding-angular-injection-context-and-signal-equality-functions?utm_source=hashnode&utm_medium=feed)

[Aug 28, 2024](https://hashnode.com/posts/understanding-angular-injection-context-and-signal-equality-functions/66cef04e32d844ee58d0b86b)

### [Create Angular Components Dynamically at runtime](https://nhannguyen.hashnode.dev/create-angular-components-dynamically-at-runtime?utm_source=hashnode&utm_medium=feed)

Dynamically create and destroy components We need two things. Some components. Some certain ViewContainer will be used to create this component. The first part is just a class constructor of the component we want to create. The ViewComtainer is m...

2 min read · [nhannguyen.hashnode.dev](https://nhannguyen.hashnode.dev/create-angular-components-dynamically-at-runtime?utm_source=hashnode&utm_medium=feed)

[Aug 23, 2024](https://hashnode.com/posts/create-angular-components-dynamically-at-runtime/66c82546ef96512fc929abcb)

### [Angular Cross Chat Tab with the BroadcastChannel API](https://nhannguyen.hashnode.dev/angular-cross-chat-tab-with-the-broadcastchannel-api?utm_source=hashnode&utm_medium=feed)

Introducing the BroadcastChannel API The BroadcastChannel API allows communication of different browsing contexts (windows, tabs, iframes). It’s explicitly designed to broadcast messages to other windows/tabs of the same origin. The BroadcastChannel ...

2 min read · [nhannguyen.hashnode.dev](https://nhannguyen.hashnode.dev/angular-cross-chat-tab-with-the-broadcastchannel-api?utm_source=hashnode&utm_medium=feed)

[Aug 21, 2024](https://hashnode.com/posts/angular-cross-chat-tab-with-the-broadcastchannel-api/66c56e6a5f354a19bc134cb5)

### [JavaScript Design Patterns - Behavioral - Template](https://nhannguyen.hashnode.dev/javascript-design-patterns-behavioral-template?utm_source=hashnode&utm_medium=feed)

The template pattern allows defining the skeleton of an algorithm in the superclass but lets subclasses override specific algorithm steps without changing its structure. In this example, We are creating a simple template method to calculate taxes and...

1 min read · [nhannguyen.hashnode.dev](https://nhannguyen.hashnode.dev/javascript-design-patterns-behavioral-template?utm_source=hashnode&utm_medium=feed)

[Aug 20, 2024](https://hashnode.com/posts/javascript-design-patterns-behavioral-template/66c434eb5e44e99637f2ed94)

### [JavaScript Design Patterns — Behavioral — Strategy](https://nhannguyen.hashnode.dev/javascript-design-patterns-behavioral-strategy?utm_source=hashnode&utm_medium=feed)

The strategy pattern defines a family of algorithms, encapsulates each one, and makes them interchangeable. In this example, We have a set of discounts that can be applied to a shopping cart. We can pass the function that we will apply to the constru...

1 min read · [nhannguyen.hashnode.dev](https://nhannguyen.hashnode.dev/javascript-design-patterns-behavioral-strategy?utm_source=hashnode&utm_medium=feed)

[Aug 16, 2024](https://hashnode.com/posts/javascript-design-patterns-behavioral-strategy/66bf1b480d366fea03dc6e2d)
