Examples used to demonstrate Angular + ngrx use for my Reactive Angular talk (Portuguese)
##Examples
All examples are using Angular 4.x and created with Angular CLI 1.x
Counter (source)
A counter which can be incremented, decremented, with the option to increment or decrement async and reset the counter. This is the most basic ngrx example, with no ajax integration.
- Creating a basic reducer
- Selecting a slice of state
- Using the async pipe
- Dispatching actions from a component
Todo CRUD (source)
Simple TODO application with CRUD operations with node backend.
- Initial reducer state
- Managing collections in reducer
- Using the async pipe with the enhanced ngFor (Angular >=4.x)
- Dispatching actions from a service
- Intercepting ajax requests with ngrx/effects
- Sample node server API
Firebase Auth (source)
Login + Logout + Register screen using Firebase.
- Initial reducer state
- Login screen + Register screen
- Menu/Navbar with conditional buttons/links
- Using the async pipe with the enhanced ngIf and ngFor (Angular >=4.x)
- Dispatching actions
- Intercepting ajax requests with ngrx/effects
- Routing from ngrx/effect
- Auth Guard using ngrx store state
- Error handling with messages on the screen
- Firebase
Simple LMS with Firebase (source)
Simple Learning Management System (list of courses and lessons) with login and CRUD operations using Firebase
- Initial reducer state
- Login screen
- Multiple reducers
- Using the async pipe with the enhanced ngIf and ngFor (Angular >=4.x)
- Dispatching actions from a service
- Intercepting ajax requests with ngrx/effects
- Firebase
- Using ngrx platform (v4) - lazy loading of reducers and app state injection dynamically