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

    Component representing the user profile view.

    This component allows users to view and edit their profile data, see their list of favorite movies, and manage their account (update/delete).

    Implements

    • OnInit
    Index

    Constructors

    Properties

    favoriteMovies: any[] = []

    Array holding movie objects that have been favorited by the user

    fetchApiData: FetchApiDataService

    Service for API communication

    router: Router

    Service for navigation between views

    snackBar: MatSnackBar

    Service for displaying notification messages

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

    Input object holding user profile details

    Methods

    • Permanently deletes the user's account after confirmation. Clears local storage and redirects to the welcome page.

      Returns void

    • Fetches the user data from the API and updates the local state. Also filters the full movie list to identify the user's favorite movies.

      Returns void

    • Lifecycle hook called after component initialization. Fetches user data to populate the profile.

      Returns void

    • Removes a movie from the user's favorites list via the API. Updates the local UI list and refreshes user data.

      Parameters

      • id: string

        The unique ID of the movie to remove

      Returns void

    • Sends the updated user data to the backend API. Updates local storage and provides feedback via SnackBar.

      Returns void