Metronic Vue: passing data to modal
Hi - is there a good way to pass data to for example "AddCustomerModal.vue" from CustomerListing.vue ?
I want my modal to be used for not just adding records but also editing records.
To edit a record, I have the Edit button for each row in the datatable which calls a function that shows the modal. Before I show the modal, I populate a ref() variable with the data from the row that was clicked.
I tried passing the "current record" to the Modal component and access it via props in the modal component but the modal component only runs through the