VueJS CRUD: Create Product Page
The Create Product Page will display a form allowing us to fill out new product data and POST this to the API to store the product data in the JSON file.
This component needs two data points, one to store the data for the product and the other to store the notification messages from the form.
POST New Product
On the submit event of the form we're going to run a method to add a new product.
This will need to first do any validation for the product and then POST this to the API, depending on the outcome . . .
Subscribe To Newsletter
Get weekly updates to your email