feat(demo): magic reactivity input
This commit is contained in:
parent
bede8e0057
commit
72925d2dfb
1 changed files with 5 additions and 1 deletions
|
@ -46,7 +46,11 @@
|
||||||
>
|
>
|
||||||
<a href="/demo/about">{{ count }}</a>
|
<a href="/demo/about">{{ count }}</a>
|
||||||
<div>
|
<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>
|
</div>
|
||||||
<code-block language="js">const name = "Nitro"</code-block>
|
<code-block language="js">const name = "Nitro"</code-block>
|
||||||
<p>some text: {{greeting}}</p>
|
<p>some text: {{greeting}}</p>
|
||||||
|
|
Loading…
Reference in a new issue