Setting up the category Route
Learn to set up the category route for our e-commerce application.
Let’s design the category
route to render all the products by category using the category.hbs
template. To display the products, we import the products in the app/routes/category.js
file. Then, we add the return statement for the products in the model:
Get hands-on with 1300+ tech skills courses.