Angular vs Angular Universal with NGRX Store

Angular vs Angular Universal with NGRX An attempt to understand how to work with the @ ngrx / store-devtools library for Angular Universal. I created this project, which is an ng seed project using Angular Universal.

He has a language switch, and I can’t understand how the store works. Github Project: https://github.com/ng-seed/universal

In the code, you see that when switching the language there are reducers, but in devtools the state is displayed empty, so you cannot understand how it is pushed to the state or how the state is controlled.

+4
source share
1 answer

@ngrx/store-devtools, , .

  • npm i @ngrx/store-devtools --save, .
  • StoreDevtoolsModule.instrument() CoreModule.
  • (npm run build:universal-dev && npm run serve).

enter image description here

+3

Source: https://habr.com/ru/post/1687155/


All Articles