myFlix Angular Client Documentation - v0.0.0
    Preparing search index...

    Component representing the user registration form.

    This component provides a form for new users to register for an account. It interacts with the FetchApiDataService to send the registration details to the backend API.

    Implements

    • OnInit
    Index

    Constructors

    Properties

    dialogRef: MatDialogRef<UserRegistrationFormComponent>

    Reference to the dialog containing this component.

    fetchApiData: FetchApiDataService

    Service used to perform the user registration API call.

    snackBar: MatSnackBar

    Service used to display notifications to the user.

    userData: {
        Birthday: string;
        Email: string;
        Password: string;
        Username: string;
    } = ...

    Input object that stores user registration data.

    Methods

    • Sends the user's registration data to the backend via the FetchApiDataService. Upon successful registration:

      1. The dialog (modal) is closed.
      2. A success message is displayed via SnackBar. If registration fails, an error message is shown via SnackBar.

      Returns void