Searching Products in the admin Route
Let's add the product search functionality in the admin route.
We'll cover the following...
We'll cover the following...
We can insert the search product functionality in the admin route. We need to add a search bar in the template, and then we can search our products based on the searched filter.
Adding a search bar
To search the product in the admin route, we need to add a search bar to the admin route and set up the admin controller. In the code below, let’s add the search bar in app/templates/admin.hbs:
- Lines 20–34: We create a
rowdivand add a search bar with a button.-
Line 26: We insert an
inputfield with the searchid. ...
-