Retrieving Movie Genres

Learn about the logic and templating of the GenresListComponent in the Movies Ionic application.

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

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.