Question: Modify frontend to filter items by name Add an input field. Connect it to the v-model. Add a button Filter by name. Connect it to
Modify frontend to filter items by name
- Add an input field. Connect it to the v-model.
- Add a button Filter by name. Connect it to a filterByName function.
- Write your filterByName method to get the items from the backend, using the appropriate endpoint.
- Test your new frontend changes.
Modify frontend to allow the name of an item to be modified
- Add an input field for _id. Label it in the HTML. Connect it to the v-model.
- Add an input field for name. Label it in the HTML. Connect it to the v-model.
- Add a button Update Item name. Connect it to an updateItem function.
- Write your updateItem method to update the item in the backend, using the appropriate endpoint.
- Test your new frontend changes.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
