feat(site): update demo code-block

This commit is contained in:
Ayo 2023-11-06 17:37:06 +01:00
parent 72925d2dfb
commit 3b5b541689

View file

@ -79,7 +79,11 @@
<main>
<a href="/demo/about">{{ count }}</a>
<div>
<my-hello-world data-name="{{name }}"></my-hello-world>
<my-hello-world id="my-hello" data-name="{{name }}"></my-hello-world>
<input
placeholder="Type your name here"
onkeyup="document.getElementById('my-hello').setAttribute('data-name', this.value)"
/>
</div>
<code-block language="js">const name = "Nitro"</code-block>
<p>some text: {{greeting}}</p>