Setting up the edit Route
Learn to set up the edit route of our e-commerce web application.
We'll cover the following...
The edit
route is the dynamic route in our application. We can click any product title in the admin
route to open the edit
route with the product’s data. The product_id
parameter is passed to the model in the edit
route:
Press + to interact
<LinkTo @route="admin.edit" @model={{item.id}}><h6 class="card-title ">{{item.product_title}}</h6></LinkTo>
When we click any product title, the product_id
of that particular product is passed to the @model
.