The App Logic
Find out what logic needs to be implemented for the Food API Ionic application.
We'll cover the following
Connecting to the spoonacular API
Our NutrientsService
class will import the Angular HttpClient
module, for making our HTTP calls to the spoonacular service, and the API key environment property we configured in the last section as well as methods for retrieving specific data.
In the src/app/services/nutrients.service.ts
file, we make the following changes (highlighted):
Get hands-on with 1400+ tech skills courses.