fun-with-rx-services | Introduction to reactive development in angular |
- We learned how to develop stateful services using
BehaviorSubject
and 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 pipe
in 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 saw how to inject the
ChangeDetectorRef
and to manually activatedetectChanges
to force invalidation of the DOM