In Angular, using the _____ pipe can automatically handle subscription and unsubscription, preventing memory leaks.
- Async
- Observer
- Promise
- Subscribe
In Angular, using the Async pipe can automatically handle subscription and unsubscription, preventing memory leaks by managing the observable's lifecycle for you.
Loading...
Related Quiz
- When does a cold observable start emitting values?
- When testing a directive that modifies the DOM, what should you consider to ensure that the tests are not flaky?
- In which of the following situations would you use an @Input() decorator in a component?
- In what scenario would you create a custom directive instead of using a component in Angular?
- You are writing a test for an Angular component that renders a list of items. You want to test that when a new item is added, it is correctly displayed in the component. Which testing technique or utility would be best suited for this?