Angular destroy reference used to register teardown logic (unsubscribe on destroy).
Holds the email address used for the reset request (for UI feedback).
Signals whether a reset email has been successfully sent.
Reactive form group for the forgot-password flow.
Controls:
email: required + email format; async existence validator is attached after emails are loaded.Signals whether the submit action is currently in progress (spinner control).
Lifecycle hook.
Loads all user emails and sets an async validator on the email control that verifies the email exists. Subscriptions are automatically cleaned up on destroy.
Handles form submission for the forgot-password request.
Behavior:
emailIsSent to show success state.
Forgot password feature component.
Renders a form with a single email field and coordinates the "forgot password" flow by:
Selector:
app-forgot-passwordStandalone:trueImports:ReactiveFormsModule,CheckEmailComponent,LoadingSpinnerComponent