Submitting the Form
In this lesson, we'll focus on submitting the form.
We'll cover the following
The first thing we’ll handle is the form submission. The Cocktail DB API requires that we provide it with a search query to filter the results of beverages. We have a form that will allow the user to input a search query. We’ll need to store the query and then submit it when the form is submitted.
Storing the query
We’ll create a property, called query
, in the form.component.ts
class file.
Get hands-on with 1200+ tech skills courses.