videoflix-frontend - v0.0.0
    Preparing search index...

    Forgot password feature component.

    Renders a form with a single email field and coordinates the "forgot password" flow by:

    • Loading known user emails to attach an async existence validator.
    • Submitting the email to request a password reset.
    • Managing UI state with Angular signals (loading, sent state, selected email).

    Selector: app-forgot-password Standalone: true Imports: ReactiveFormsModule, CheckEmailComponent, LoadingSpinnerComponent

    Index

    Constructors

    Properties

    destroyRef: DestroyRef = ...

    Angular destroy reference used to register teardown logic (unsubscribe on destroy).

    email: WritableSignal<string> = ...

    Holds the email address used for the reset request (for UI feedback).

    emailIsSent: WritableSignal<boolean> = ...

    Signals whether a reset email has been successfully sent.

    forgotPasswordForm: FormGroup<{ email: FormControl<string | null> }> = ...

    Reactive form group for the forgot-password flow.

    Controls:

    • email: required + email format; async existence validator is attached after emails are loaded.
    isSubmitLoading: WritableSignal<boolean> = ...

    Signals whether the submit action is currently in progress (spinner control).

    Methods

    • Handles form submission for the forgot-password request.

      Behavior:

      • Sets loading state.
      • If form is valid, calls the auth service to send the reset email.
      • Stores the submitted email in a signal for UI messaging.
      • Toggles emailIsSent to show success state.
      • Ensures subscription cleanup on destroy.

      Returns void