Example angular application with NGRX
This project was generated with Angular CLI version 14.2.4.
Simple implementation for ngrx usage in angular.
Application state object :
export interface AppState { stocks: ReadonlyArray<Stock>; }
For stocks that we keep in app state we have reducer,action and selector.
Run npm install
before run the project.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory.
For test reflection of stocks in components please click Add Stock
button.