RxJS for Architects
-
Open this project in your browser
-
Find out, how the examples works. For this, have a look to the component and facade service in the folder
flight-lookahead
. -
Try to answer the following questions regarding the facade:
- Why are the subjects
private
and the observablesreadonly
? - What does the method
asObservable
do? - Why does
online$
useshareReplay
at the end? - What does the parameters passed to
sharedReplay
mean? - What does
combineLatest
do? - Why does
flights$
useswitchMap
? - How is error handling done?
- Why is error handling important here?
- Why are the subjects
-
Try to answer the following questions regarding the component:
- What does
debounceTime
do for the Observableinput$
? - How does this component unsubscribe from the Observables used (hint: there are two different answers!)
- What does