Posts

Showing posts from February, 2020

NgRx Store - The Basics

Image
Introduction The NgRx Store is a common framework you may come across in a lot of Angular applications, and for good reasons. The main reason is the ability to group, organize and funnel data, which can present many benefits not just for the application itself, but also for the developer. In this post, we will discuss the basic fundamental pieces of the NgRx framework and how we can use it to its full potential. NgRx - State and Accessibility The State is where the state of the application is defined and managed. The Initial State is where we can have the ability to set values that we want our state to start off with, under the type rules that are set in the implemented interface. For complex applications, it allows us to nest one state with even more states, called Feature States , in a sort of parent-child relationship, in order to organize datasets that fall under certain categories. The State is immutable and read-only , and in order for angular components to acces