What I mean by the "angular / rxjs" version of redux ... the "angular" part is that ngrx is a library for use in angular applications. Part of the “rxjs” is that the ngrx implementation works around the rxjs stream . This means that it works using observable and various observable operators provided by rxjs.
In one store? We will talk about repositories later, but for a general understanding, they are responsible for maintaining the state and applying changes to it when they are told about it (when the action is sent, we will also talk about them later).
Submit an action? .. We will talk about actions later, but for a general understanding, these are the identifiers of the operation on your application, and they can be launched (or sent) to tell the application to perform the operation that the action represents.
…«» () . — , NGRX Action. Action' ( GetUserName):type (): , , . : '[User] Get User Login''.payload ( ): , . , . .
...— , : . ngrx , , , , , .
...ngrx , ngrx.Effects , - , , , , , ., API., , (success, error ..), , ngrx.
..., , , .NGRX «» . , , .. . «store» , ....A store is an object (an instance of the Store ngrx class) that combines the things we mentioned earlier (actions, reducers, selectors). For example, when an action is sent (using the send function of the storage object), the storage is the one that finds and executes the corresponding reducer.He is also an application state holder.