Click in order · Angular course · Module 8: Forms
Cleaning up a form subscription
Build a safe subscription to form changes with automatic cleanup: this.form.valueChanges.pipe(takeUntilDestroyed(this.destroyRef)). Click the elements in order.
Items to click
- )
- takeUntilDestroyed(this.destroyRef)
- this.form
- .pipe(
- .valueChanges
You can check the correct answer by solving this task in the CodeWorlds game.