Based on code from the GDG Toulouse talk "Redux with Angular & ngrx" in February 2018 (See bbaia/gdgtoulouse-ngrx
).
On the master
branch, you'll find the code based on global store and the full NgRx stack (@ngrx/store
& co).
On the component-store
branch, you'll find a version based on component store (@ngrx/component-store
), the alternative to reactive push-based "Service with a Subject" approach.
On the zoneless
branch, you'll find a version working without Zone.js
using @ngrx/component
, a set of primitive reactive helpers to enable fully reactive, Zoneless applications.
The sample is available at https://bbaia.github.io/todomvc-angular-ngrx/ using the zoneless
version (~235kB)
This project was generated with Angular CLI.
Run npm start
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run npm test
to execute the unit tests via Jest.
Run npm run e2e
to execute the end-to-end tests via Cypress.
Run npm run e2e:ci
to execute the end-to-end tests in a headless mode for executing tests in a CI environment.