use server variable as attribute value

This commit is contained in:
Ayo 2023-10-09 15:30:52 +02:00
parent bd751011f8
commit 62e079efef

View file

@ -12,11 +12,10 @@
<body>
<a href="/about">About</a>
<div>
<hello-world name="Ayo"></hello-world>
<hello-world name="{{name}}"></hello-world>
</div>
<span>some text</span>
<clickable-text></clickable-text>
<span>Name: {{ name }}</span>
<script>
const helloWorld = document.querySelector("hello-world");
setTimeout(() => {