Service for API communication
Service for navigation
Service to manually trigger change detection
Service to open Material Dialogs
Service to display notifications
Service to open Material Dialogs
Service for API communication
Array holding all movie data fetched from the API
Service for navigation
Service to display notifications
Adds a movie to the user's list of favorites via API. Updates local storage with the new user data.
The unique ID of the movie
Fetches all movies from the backend API. Updates the 'movies' array and triggers change detection.
Checks if a movie is in the user's favorite list. This is used in the HTML to determine which icon to show (filled heart vs border).
The movie ID
boolean - True if the movie is a favorite
Navigates to the welcome screen and clears user data from local storage.
Lifecycle hook called after component initialization. Fetches the initial list of movies.
Opens a dialog showing director details.
The movie object containing director information
Opens a dialog showing genre details.
The movie object containing genre information
Opens a dialog showing the movie synopsis.
The movie object containing summary information
Removes a movie from the user's list of favorites via API.
The unique ID of the movie
Component representing the movie card display.
Description
This component fetches movie data and handles user interactions such as viewing details (genre, director, synopsis), adding/removing favorites, and logging out.