Bringing It All Together
We can now switch our attention to the coding of the following components that will make use of our services and, where appropriate, our custom defined interfaces:
- The
src/app/app.component.tscomponent - The
src/app/home/home.page.tscomponent
Amendments to the app root component
Let’s kickstart this with the application root component, src/app/app.component.ts (amendments highlighted):
There’s nothing complicated here, just importing the PlacesService and loading the data for the Apple Stores and their respective countries.
The HomePage component
With these now in place, we can focus on crafting the logic for the Appy Mapper HomePage component and pull together the different services that we’ve created so far to deliver the final application.