Retrieving Movie Genres
Learn about the logic and templating of the GenresListComponent in the Movies Ionic application.
We'll cover the following
Let’s now turn our attention to the coding of the following custom components – located in our src/app/components/shared-components
directory:
- The
GenresListComponent
- The
MovieComponent
- The
MovieCreditsComponent
- The
SavedSearchesListComponent
The GenresListComponent
Let’s start with the logic and templating for the GenresListComponent
, which will retrieve a list of movie genres and display these in an Ionic Modal component.
The component logic
In the components/shared-components/genres-list/genres-list.component.ts
, we make the following amendments (highlighted):
Get hands-on with 1200+ tech skills courses.