From the course: Learning NgRx

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Overview of component architecture with NgRx

Overview of component architecture with NgRx - Angular Tutorial

From the course: Learning NgRx

Start my 1-month free trial

Overview of component architecture with NgRx

- [Instructor] In this video, we're going to see how to architect our components with NgRx. The Angular Framework encourages us to adapt reactive programming, where components know how to react to data updates. An Angular application is supposed to have two different kinds of components, container components, or smart components, are the one that interact with services to get some data. On the other hand, we have presentational components, also called dumb, or lazy, sometimes. And these components don't have to know about any service. They just have to be fed with data from their parent components. So here's what this would look like in the context of our application. The only component that would be aware of the store would be the main page component. And that's a container component in our app. So it's going to interact with the store or any services to get the data update the data, and interact with the business logic. And our other components, like the zipcode entry component, and…

Contents