Searching Products in the admin Route

Let's add the product search functionality in the admin route.

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:

Get hands-on with 1400+ tech skills courses.