sample interactivity.

This commit is contained in:
Miroslav Šedivý 2020-11-05 12:52:22 +01:00
parent ec1e0c63f4
commit 2c5ec6545a

View File

@ -1,6 +1,8 @@
<template> <template>
<div> <div>
<h1>Hello world, Neko.</h1> <h1>Hello world, Neko.</h1>
<button @click="visible = !visible">Toggle</button>
<div v-if="visible">Is this visible?</div>
</div> </div>
</template> </template>
@ -10,5 +12,7 @@
@Component({ @Component({
name: 'neko', name: 'neko',
}) })
export default class extends Vue {} export default class extends Vue {
public visible: boolean = false
}
</script> </script>