Service for API communication
Service for displaying notification messages
Service for navigation between views
Service to manually trigger Angular change detection
Array holding movie objects that have been favorited by the user
Service for API communication
Service for navigation between views
Service for displaying notification messages
Input object holding user profile details
Permanently deletes the user's account after confirmation. Clears local storage and redirects to the welcome page.
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.
Lifecycle hook called after component initialization. Fetches user data to populate the profile.
Removes a movie from the user's favorites list via the API. Updates the local UI list and refreshes user data.
The unique ID of the movie to remove
Sends the updated user data to the backend API. Updates local storage and provides feedback via SnackBar.
Component representing the user profile view.
Description
This component allows users to view and edit their profile data, see their list of favorite movies, and manage their account (update/delete).