| fully-reactive-app | Using RxJs with angular services |
| fun-with-operators | Introduction to RxJs Operators |
- We learned how to develop stateful services using
BehaviorSubjectand expose it as an observable using the.asObservable()method - We understood that if we subscribe to an observable we must also unsubscribe from it when we are done with it to avoid memory leaks
- We saw that we can bind directly to an observable using the
async pipein the html - We learned the term Fully Reactive Application as one where we pass observables all the way from the services to the html templates
- We saw how to configure manual change detection for components and understood that it can dramatically improve performance
- We talked about the concept of operators in math, strings and arrays
- We understood that RxJS operators create observables.
- We saw 4 documentation web sites that serve as reference guide for reactive operators
- We covered some simple operators
- We created an example that uses observable to convert color search keyword into a list of matching results (colors)
- We Understood that the
mapoperator cannot be used when we apply an asyncronous function on each event because it creates an Observable of Promises - We saw how to use
mergeAllandswitchAllto flatten the higher order observables. - We can also use shortcuts:
mergeMap(x => observable)is actually short formap(x => observable), mergeAll()switchMap(x => observable)is actually short formap(x => observable), switchAll()
- We understood the difference between mergeMap and switchMap
Convert the PopQuiz application to be fully reactive. You can use the video in the link for assistance.