Contents
forkJoin Operator
Can be imported from here:
|
|
For official documentation, visit https://rxjs-dev.firebaseapp.com/api/operators/endWith
What it does?
Returns an observable that takes in input array of observables or dictionary of observables and emits last values before completion of observables (in array or dictionary object).
Example 1 (input as dictionary object)
|
|
|
|
Note: result is emitted after 4 seconds as
timer(4000)
takes 4 seconds to complete.
Example 2 (input as array)
|
|
|
|
Note: result is emitted after 4 seconds as
timer(4000)
takes 4 seconds to complete.
Комментарии