You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can't. Leaf is a server-side framework. Once the HTML has been sent to the browser, Leaf (and Vapor) won't have access to any events. To trigger a swift function on an onclick handler you'll need to use JavaScript to send a request to an endpoint in the Vapor app
I can use
<p>#(name)</p>
.I do not know
<button onClick=#(changeName()) />
How to set button onClick?
The text was updated successfully, but these errors were encountered: