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