ezzabuzaid / react-context-in-angular

1 stars 1 forks source link

Introduction #1

Open ezzabuzaid opened 3 years ago

ezzabuzaid commented 3 years ago

In this article, I'm going to show you how we could mimic React Context API in Angular, I'll start by defining React Context, talk about what problem is meant to solve, and possible use cases.

We will depend on Dependincy Injection and Directives to accomplish the goal.

If at any moment you don't feel interested in reading more, think of this article as another use case for Dependincy Injection in Angular.

ezzabuzaid commented 3 years ago

In this article, I'm going to show you how we could mimic React Context API in Angular, I'll start by defining React Context, talk about what problem is meant to solve, and possible use cases.

If at any moment you don't feel interested in reading more, think of this article as a new approach for component communication in Angular.

ezzabuzaid commented 3 years ago

In this article, I'm going to show you how we could mimic React Context API in Angular, I'll start by defining React Context, talk about what problem is meant to solve, and possible use cases.

I will focus more on implementation rather than explaining definitions, still, I'll make sure to explain any irrelevant terms. This is just an experiment, it doesn't replace any working tool or comparing a framework to another.

If at any point you don't feel interested in reading more, think of this article as a new approach for component communication in Angular.

ezzabuzaid commented 3 years ago

The drawing was made via Excalidraw_.

In this article, I'm going to show you how to mimic React Context API in Angular, I'll start by defining React Context, talk about what problem is meant to solve, possible use cases, and a lot more.

I will focus more on implementation and detail it as possible rather than explaining definitions, nonetheless, I'll make sure to explain any irrelevant terms.

If at any point you don't feel interested in reading further, think of this article as a new approach for component communication in Angular.

For clarity about what I’m going to talk about, the project is available to browse through Github. or a Demo if you prefer.