Recently, I've been experimenting with Vue and I'm interested in achieving the following:
<snippet name="Select From Table">
SELECT *
FROM database.table
</snippet>
I want to create a link that, when clicked, triggers a function allowing access to the SQL query.
I attempted using a component, but struggled to figure out how to retrieve the SQL within the click event. Although slots seem promising, it appears they only function within the tag itself and not as attributes.
Any suggestions or pointers would be greatly appreciated! Thanks!