Searching Products in the category Route

Learn to add the product search functionality in the category route.

Now, let’s add a search bar in the category/index.hbs template to receive the filter value.

Adding a search bar

We need to add a search bar and set up the category.index controller to search the product in the category route. Let’s add the search bar in the app/templates/category/index.hbs template:

Get hands-on with 1200+ tech skills courses.