Outline
- Webinar: Observables For All
-
Getting Started with RxJS & Observables Workshop with Aaron Frost
- Getting Started with RxJS & Observables Workshop with Aaron Frost
- Observables -vs- Promises
- Exercise: Easy -vs- Lazy Promises & Observables
- Exercise: Eager -vs- Lazy & Cancellable
- Multi-Casting Observable Functions with an Exercise
- Follow-Up on Multi-Tasking & Chaining with an Exercise
- Reactive: Complete -vs- Incomplete
- Difference Between Unsubscribe and Complete
- Observable Creators: From, Interval, and fromEvent
- Combining Multiple Observables & merge -vs- forkJoin
- Observable Creators: merge, forkJoin, xip, concat, and combineLatest & Operators: startWith and filter
- Operators: scan, distinctUntilChanged, and pluck
- What is Reactive?
- Looking at the Code
- Making the Search Reactive
- Q&A: Breaking Things Down
- Overview & Q&A
- Using tap & Coding the Number of Pages and Total Results
- Coding the Limit Buttons
- Coding the Prev & Next Buttons
- Explanation of BehaviorSubjects
- Explanation of tap and Wrap-up of Steps
Outline
- Webinar: Observables For All
-
Getting Started with RxJS & Observables Workshop with Aaron Frost
- Getting Started with RxJS & Observables Workshop with Aaron Frost
- Observables -vs- Promises
- Exercise: Easy -vs- Lazy Promises & Observables
- Exercise: Eager -vs- Lazy & Cancellable
- Multi-Casting Observable Functions with an Exercise
- Follow-Up on Multi-Tasking & Chaining with an Exercise
- Reactive: Complete -vs- Incomplete
- Difference Between Unsubscribe and Complete
- Observable Creators: From, Interval, and fromEvent
- Combining Multiple Observables & merge -vs- forkJoin
- Observable Creators: merge, forkJoin, xip, concat, and combineLatest & Operators: startWith and filter
- Operators: scan, distinctUntilChanged, and pluck
- What is Reactive?
- Looking at the Code
- Making the Search Reactive
- Q&A: Breaking Things Down
- Overview & Q&A
- Using tap & Coding the Number of Pages and Total Results
- Coding the Limit Buttons
- Coding the Prev & Next Buttons
- Explanation of BehaviorSubjects
- Explanation of tap and Wrap-up of Steps
In this section, we are going to discuss how observables compare to promises.
Here is the link to the stackblitz referenced in the video above: https://stackblitz.com/edit/observables4all
How promises and observables are similar:
- They both have a simple constructor that only takes one parameter
- They both inject what you need to handle success or a failure scenario
- You can subscribe to either one of them using the .then for a promise or .subscribe for the observable method