In RxJS, to ensure that resources like subscriptions are released when an Observable completes or errors out, you can use the _____ operator.
- distinctUntilChanged
- filter
- finalize
- takeUntil
To ensure resource cleanup when an Observable completes or errors out, you can use the finalize operator in RxJS.
Loading...
Related Quiz
- You want to track the time taken for a user to navigate from one page to another in your Angular application. Which Router Events can be useful for this purpose?
- What is the purpose of using AbstractControl in reactive forms?
- How can you test an Angular component that depends on a service with asynchronous methods?
- How can you apply a custom validator to a form control in Angular?
- When debugging Protractor tests, you can insert a call to _____ to pause the test execution.